1.1. System Requirements
You can view basic system information with the command uname -a
❗️Requirements: x64 bit, kernel version >= 3.10
recommend:
- Ubuntu 16.04 Xenial +
- Debian 8 Jessie +
- CentOS7 +
hint:
Both macOS and Windows have corresponding client GUI versions, see the official documentation for details.
1.2. One-click installation script
This script is suitable for Ubuntu, Debian, and CentOS systems, among which: the official version may be slow to install in some cases, and Alibaba Cloud's script failed many attempts under CentOS 7.4, so the DaoCloud version is recommended.
# 官方
➜ curl -sSL https://get.docker.com/ | sh
# DaoCloud(推荐)
➜ curl -sSL https://get.daocloud.io/docker | sh
# 阿里云
➜ curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh
或
➜ wget -qO- http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh
Check if the installation was successful
➜ docker --version
Docker version 18.02.0-ce, build fc4de44
Start Docker and add self-start
➜ systemctl start docker
➜ systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
hint:
After the installation is successful, if you want ordinary users to have all the permissions of docker, you need to execute
sudo usermod -aG docker your-user
to add ordinary users to the docker group, otherwise you need to usesudo docker commands
the form to execute all docker commands.After joining the docker group, the system needs to be restarted to take effect.