The following learning notes are collated from "Docker Development Practice" http://www.ituring.com.cn/book/1631
Ubuntu Install Docker Fedora Install Docker Redhat install Docker verify Docker is installed successfully
Ubuntu installation Docker
Install Docker directly from the software warehouse
$ sudo apt install Docker.io
Or install the official latest edition of Docker
Add apt HTTPS support
$ sudo apt install Apt-transport-https
Add the public key of the Docker library to local apt
$ sudo apt-key adv–keyserver hkp://keyserver.ubuntu.com:80–recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
Add the installation source to the APT source
$ sudo sh-c "echo deb Https://get.docker.com/ubuntu docker main\ >/etc/apt/sources.list.d/docker.list"
Update the software warehouse and install Docker
$ sudo apt update
$ sudo apt install lxc-docker
Fedora Installation Docker
Fedora 19 Installation Docker
$ sudo yum-y install Docker-io
Fedora 20 and later installation Docker
$ sudo yum-y install Docker
Redhat Installation Docker
RHEL 6 (6.5+) and CentOS 6 installation Docker
Install Epel
$ sudo rpm-uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Install Docker
$ sudo yum-y install Docker-io
RHEL 7 Installation Docker
Enable additional channels
$ sudo subscription-manager repos--enable=rhel-7-server-extras-rpms
Install Docker
$ sudo yum-y install Docker
Verify that the Docker is installed successfully
After the installation is successful, the terminal will output information similar to the following after the sudo docker info command is executed
$ sudo docker info containers:0 running:0 paused:0 stopped:0 images:0 Server version:1.11.2 Storage Driver: Aufs Root Dir:/var/lib/docker/aufs backing filesystem:extfs dirs:0 Dirperm1 supported:true Logging Le cgroup driver:cgroupfs Plugins:Volume:local network:host bridge null Kernel version:4.4.0-21-generic operating S Ystem:linux Mint ostype:linux architecture:x86_64 cpus:4 total memory:7.711 GiB name:origin ID:XU66:O7NA:MVKY:BS W7:yima:kjit:4q3d:eseb:y5bz:lzf4:j3vk:eai6 Docker Root Dir:/var/lib/docker debug Mode (client): false debug Mode (server ): false Registry:https://index.docker.io/v1/warning:no swap limit support