Install using the repository
Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.
- 下载安装
下载地址https://download.docker.com/linux/static/stable/x86_64/
-
解压
tar xzvf /path/to/<FILE>.tar.gz
-
copy到系统目录
sudo cp docker/* /usr/bin/
-
Start the Docker daemon:
$ sudo dockerd &
开机自动启动docker
//
参考文章
- https://docs.docker.com/engine/install/binaries/