1. Upgrade Linux kernel
rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
yum –enablerepo=elrepo-kernel install kernel-lt -y
2. Modify default startup order
vim /etc/ grub.conf
Restart the server
shutdown -r now
3. Disable SELinux
4. Offline installation of docker with static binary files
reference resources https://docs.docker.com/install/linux/docker-ce/binaries/#install -static-binaries
This installation method is the most simple and correct, the rest of the online reference rpm, yum installation all have a variety of problems.
1. Download static binary file
go to https://download.docker.com/linux/static/stable/ (or change stable to edge or test), select your hardware platform, and then download. Tgz files related to the docker CE version to be installed.
2. Decompress
$ tar –xzvf docker-18.06.3- ce.tgz For this, please install it on demand
Required: move the binary file to a directory on the executable path, such as/usr/bin /.
——–Without this step, it is invalid to call docker under the docker file
$ sudo cp docker/* /usr/bin/
3. Start the docker daemon:
$ sudo dockerd&
Note: if the following error occurs when starting the daemons:
The reason is that CGroup is not mounted on the host computer. To add a mount, the solution is as follows:
vim /etc/fstab
none /sys/fs/cgroup cgroup defaults 0 0
Save and restart.
4. Start the docker command test
docker -v
Read More:
- Centos7 quick installation of docker and configuration of image acceleration
- Installing docker on Huawei Kunpeng server arm64
- Linux CentOS installing protobuf
- Error during connect when installing docker in Windows 10
- Error: path not specified when the docker 1.7 file is uploaded to the container in CentOS
- Centos7 installing Kafka
- Docker CentOS Failed to get D-Bus connection: Operation not permitted
- CentOS 7 installation error: Cannot find a valid baseurl for repo: base/7/x86_6
- Some problems in installing wsl2 and NVIDIA docker in win10
- Installing opencv Python in docker container
- The solution of centos7’s inaccessibility after installing nginx
- The solution of centos7 in VMware virtual machine unable to access after installing nginx
- Solution to x service error when installing NVIDIA graphics driver under Ubuntu
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Linux rhel7/centos7 source code compilation and installation Emacs Error NO x toolkit could be found
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- Error in installing MySQL devel for CentOS MySQL
- Error installing OS X virtual machine vcu-0: verify vmcore / VM / main / physmem_ monitor.c:1123
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401