“安装Docker”的版本间的差异

来自姬鸿昌的知识库
跳到导航 跳到搜索
(建立内容为“Linux 安装 docker 引擎<syntaxhighlight lang="shell-session"> [root@localhost docker_zk]# yum install -y docker-ce docker-ce-cli containerd.io ...... [root@loc…”的新页面)
 
第1行: 第1行:
Linux 安装 docker 引擎<syntaxhighlight lang="shell-session">
+
<syntaxhighlight lang="shell-session">
 +
[root@localhost docker_zk]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
 +
Loaded plugins: fastestmirror
 +
adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
 +
grabbing file https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
 +
repo saved to /etc/yum.repos.d/docker-ce.repo
 +
[root@localhost docker_zk]#
 +
</syntaxhighlight>Linux 安装 docker 引擎<syntaxhighlight lang="shell-session">
 
[root@localhost docker_zk]# yum install -y docker-ce docker-ce-cli containerd.io
 
[root@localhost docker_zk]# yum install -y docker-ce docker-ce-cli containerd.io
 
......
 
......

2022年8月15日 (一) 14:45的版本

[root@localhost docker_zk]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost docker_zk]#

Linux 安装 docker 引擎

[root@localhost docker_zk]# yum install -y docker-ce docker-ce-cli containerd.io
......
[root@localhost docker_zk]# docker -v
Docker version 20.10.17, build 100c701
[root@localhost docker_zk]#