【DockerCE】DockerCE 20.10.2 完整离线安装包、停启变化(原创)

一、DockerCE 20.10.2版本安装所需的包

看官若是觉得满意,请酌情打个赏呗(^_^)

[root@docker-ce ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

[root@docker-ce tools]# ls -ltr

总用量 104548
-rwxr--r--. 1 root root 55796 4月 29 2020 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
-rwxr--r--. 1 root root 83764 4月 29 2020 fuse3-libs-3.6.1-4.el7.x86_64.rpm
-rwxr--r--. 1 root root 83452 4月 29 2020 slirp4netns-0.4.3-4.el7_8.x86_64.rpm
-rwxr--r--. 1 root root 40816 7月 6 2020 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
-rwxr--r--. 1 root root 34677436 12月 29 09:12 containerd.io-1.4.3-3.1.el7.x86_64.rpm
-rwxr--r--. 1 root root 9486464 12月 29 16:10 docker-ce-rootless-extras-20.10.1-3.el7.x86_64.rpm
-rwxr--r--. 1 root root 27893588 1月 8 07:59 docker-ce-20.10.2-3.el7.x86_64.rpm
-rwxr--r--. 1 root root 34721660 1月 8 08:00 docker-ce-cli-20.10.2-3.el7.x86_64.rpm

[root@docker-ce tools]# rpm -ivh *.rpm
警告:containerd.io-1.4.3-3.1.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:container-selinux-2:2.119.2-1.911################################# [ 13%]
2:containerd.io-1.4.3-3.1.el7 ################################# [ 25%]
3:slirp4netns-0.4.3-4.el7_8 ################################# [ 38%]
4:fuse3-libs-3.6.1-4.el7 ################################# [ 50%]
5:fuse-overlayfs-0.7.2-6.el7_8 ################################# [ 63%]
6:docker-ce-cli-1:20.10.2-3.el7 ################################# [ 75%]
7:docker-ce-rootless-extras-0:20.10################################# [ 88%]
8:docker-ce-3:20.10.2-3.el7 ################################# [100%]

二、DockerCE 20.10.2启停

通过下面的测试可以发现,DockerCE 20.10.2停服务之前,需要先把另外一个docker.socket服务给停掉,否则docker.service仍然可以被docker.socket服务激活。

[root@docker-ce tools]# systemctl stop docker.service

Warning: Stopping docker.service, but it can still be activated by:
docker.socket
[root@docker-ce tools]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead) since 五 2021-01-08 10:03:05 CST; 17s ago
Docs: https://docs.docker.com
Process: 54100 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=0/SUCCESS)
Main PID: 54100 (code=exited, status=0/SUCCESS)

1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.588230244+08:00" level=info msg="Loading containers: done."
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.775956114+08:00" level=info msg="Docker daemon" commit=8891c58 graphdriver(s)=overlay...on=20.10.2
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.776070019+08:00" level=info msg="Daemon has completed initialization"
1月 08 10:02:42 docker-ce systemd[1]: Started Docker Application Container Engine.
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.829589249+08:00" level=info msg="API listen on /var/run/docker.sock"
1月 08 10:03:05 docker-ce systemd[1]: Stopping Docker Application Container Engine...
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.891497414+08:00" level=info msg="Processing signal 'terminated'"
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.895227162+08:00" level=info msg="stopping event stream following graceful shutdown" e...space=moby
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.895489737+08:00" level=info msg="Daemon shutdown complete"
1月 08 10:03:05 docker-ce systemd[1]: Stopped Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
[root@docker-ce tools]# systemctl status docker.socket
● docker.socket - Docker Socket for the API
Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
Active: active (listening) since 五 2021-01-08 10:02:39 CST; 1min 1s ago
Listen: /var/run/docker.sock (Stream)

1月 08 10:02:38 docker-ce systemd[1]: Starting Docker Socket for the API.
1月 08 10:02:39 docker-ce systemd[1]: Listening on Docker Socket for the API.

[root@docker-ce tools]# systemctl stop docker.socket
[root@docker-ce tools]# systemctl status docker.socket
● docker.socket - Docker Socket for the API
Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled; vendor preset: disabled)
Active: inactive (dead)
Listen: /var/run/docker.sock (Stream)

1月 08 09:01:34 docker-ce systemd[1]: Starting Docker Socket for the API.
1月 08 09:01:35 docker-ce systemd[1]: Listening on Docker Socket for the API.
1月 08 09:01:58 docker-ce systemd[1]: Closed Docker Socket for the API.
1月 08 10:02:38 docker-ce systemd[1]: Starting Docker Socket for the API.
1月 08 10:02:39 docker-ce systemd[1]: Listening on Docker Socket for the API.
1月 08 10:03:57 docker-ce systemd[1]: Closed Docker Socket for the API.

[root@docker-ce tools]# systemctl stop docker.service
[root@docker-ce tools]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com

1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.588230244+08:00" level=info msg="Loading containers: done."
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.775956114+08:00" level=info msg="Docker daemon" commit=8891c58 graphdriver(s)=overlay...on=20.10.2
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.776070019+08:00" level=info msg="Daemon has completed initialization"
1月 08 10:02:42 docker-ce systemd[1]: Started Docker Application Container Engine.
1月 08 10:02:42 docker-ce dockerd[54100]: time="2021-01-08T10:02:42.829589249+08:00" level=info msg="API listen on /var/run/docker.sock"
1月 08 10:03:05 docker-ce systemd[1]: Stopping Docker Application Container Engine...
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.891497414+08:00" level=info msg="Processing signal 'terminated'"
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.895227162+08:00" level=info msg="stopping event stream following graceful shutdown" e...space=moby
1月 08 10:03:05 docker-ce dockerd[54100]: time="2021-01-08T10:03:05.895489737+08:00" level=info msg="Daemon shutdown complete"
1月 08 10:03:05 docker-ce systemd[1]: Stopped Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.

看官若是觉得满意,请酌情打个赏呗(^_^)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cnskylee

技术分享我是认真的,期待您打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值