音标 | 注释 | |
---|---|---|
manually | [ˈmænjʊəli] :[mai’ niu’ lei] | 手动 |
Developers | [dɪˈvɛləpəz]:[di’ wai’ le ’ pe 'si] | 开发者 |
edition | [ɪˈdɪʃn] :[yi’ di’ shen] | 版本 |
daemon | [ˈdiːmən] :[di’ men] | 守护进程 |
官网文档目录:
├── Docker官网
| ├── Developers
| ├── Docs
| ├── Manuals
| ├── Docker Engine
| ├── Install
| ├── Install On CentOS
sudo yum update
Older versions of Docker were called docker
or docker-engine
. If these are installed, uninstall them, along with associated dependencies.
$ sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
It’s OK if yum
reports that none of these packages are installed.
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.
Install the yum-utils
package (which provides the yum-config-manager
utility) and set up the repository.
$ sudo yum install -y yum-utils
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
This command installs Docker, but it doesn’t start Docker. It also creates a docker
group, however, it doesn’t add any users to the group by default.
(2)-1. 列出所有可用版本;
yum list docker-ce --showduplicates | sort -r
docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable
docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable
docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable
docker-ce.x86_64 18.06.0.ce-3.el7 docker-ce-stable
参数:
docker-ce : docker community edition 社区版本;
sort -r : 降序排列
The list returned depends on which repositories are enabled, and is specific to your version of CentOS
(2)-2. 添加参数, 直接安装特定版本;
sudo yum install docker-ce- docker-ce-cli- containerd.io docker-compose-plugin
This command installs Docker, but it doesn’t start Docker. It also creates a docker
group, however, it doesn’t add any users to the group by default.
sudo systemctl start docker
sudo systemctl status docker