Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the Docker version and reinstall Docker

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

The editor will share with you how to check the Docker version and reinstall Docker. I hope you will get something after reading this article. Let's discuss it together.

Check the Docker version

[root@Docker] # docker versionClient: Docker Engine-Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: Wed Mar 11 01:27:04 2020 OS/Arch: linux/amd64 Experimental: falseServer: Docker Engine-Community Engine: Version: 19.03.8 API version: 1.40 (minimum Version 1.12) Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:25:42 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683

View all docker versions in all repositories and select a specific version to install

[root@Docker] # yum list docker-ce--showduplicates | sort-r * updates: mirrors.aliyun.comLoading mirror speeds from cached hostfileLoaded plugins: fastestmirror * extras: mirrors.ustc.edu.cn * epel: hkg.mirror.rackspace.comdocker-ce.x86_64 3showduplicates 19.03.8-3.el7 docker-ce-stabledocker-ce.x86_64 3pur19.03.7-3.el7 Docker-ce-stabledocker-ce.x86_64 3vl 19.03.6-3.el7 docker-ce-stabledocker-ce.x86_64 3vl 19.03.5-3.el7 docker-ce-stabledocker-ce.x86_64 3vl 19.03.4-3.el7 docker-ce-stabledocker- Ce.x86_64 3vl 19.03.3-3.el7 docker-ce-stabledocker-ce.x86_64 3vl 19.03.2-3.el7 docker-ce-stabledocker-ce.x86_64 3vl 19.03.1-3.el7 docker-ce-stabledocker-ce.x86_64 33.el7 docker-ce-stabledocker-ce.x86_64 19.03.0-3.el7 docker-ce-stabledocker-ce.x86_64 3VR 18.09.9-3.el7 docker-ce-stabledocker-ce.x86_64 3VR 18.09.8-3.el7 docker-ce-stabledocker-ce.x86_64 3VR 18.09.7- 3.el7 docker-ce-stabledocker-ce.x86_64 3Rd 18.09.6-3.el7 docker-ce-stabledocker-ce.x86_64 3RV 18.09.5-3.el7 docker-ce-stabledocker-ce.x86_64 3RO 18.09.4-3.el7 Docker-ce-stabledocker-ce.x86_64 3Rd 18.09.3-3.el7 docker-ce-stabledocker-ce.x86_64 3RV 18.09.2-3.el7 docker-ce-stabledocker-ce.x86_64 3RO 18.09.1-3.el7 docker-ce-stabledocker -ce.x86_64 3VR 18.09.0-3.el7 docker-ce-stabledocker-ce.x86_64 18.06.3.ce-3.el7 docker-ce-stabledocker-ce.x86_64 18.06.2.ce-3.el7 docker-ce-stabledocker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stabledocker-ce.x86_64 18.06.0.ce-3.el7 docker-ce-stabledocker-ce.x86_64 18.03.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 18.03.0.ce-1.el7.centos Docker-ce-stabledocker-ce.x86_64 17.12.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86 _ 64 17.09.0.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.06.0.ce- 1.el7.centos docker-ce-stabledocker-ce.x86_64 17.03.3.ce-1.el7 docker-ce-stabledocker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stabledocker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce -stabledocker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable * base: mirrors.aliyun.comAvailable Packages

Reinstall Docker

Install docker-ce-18.06.0.ce

[root@Docker] # yum remove docker docker-common docker-selinux docker-engine-y [root@Docker] # yum install-y docker-ce-18.06.0.ce

Errors that may be encountered

File / usr/share/zsh/vendor-completions/_docker from install of docker-ce-18.06.0.ce-3.el7.x86_64 conflicts with file from package docker-ce-cli-1:19.03.8-3.el7.x86_64Error Summary

Solution method

Uninstall docker-ce-cli-1:19.03.8-3.el7.x86_64-y

[root@Docker] # yum erase docker-ce-cli-1:19.03.8-3.el7.x86_64-y

Install docker-ce-18.06.0.ce again

[root@Docker] # yum install-y docker-ce-18.06.0.ce [root@Docker] # systemctl start docker [root@Docker] # systemctl enable dockerCreated symlink from / etc/systemd/system/multi-user.target.wants/docker.service to / usr/lib/systemd/system/docker.service. [root@Docker] # systemctl status docker ● docker.service-Docker Application Container Engine Loaded: loaded (/ usr/lib/systemd/system/docker.service; enabled) Vendor preset: disabled) Drop-In: / etc/systemd/system/docker.service.d └─ kolla.conf Active: active (running) since Mon 2020-03-30 14:25:00 EDT 24s ago Docs: https://docs.docker.com Main PID: 21775 (dockerd) CGroup: / system.slice/docker.service ├─ 21775 / usr/bin/dockerd └─ 21782 docker-containerd-- config / var/run/docker/containe...Mar 30 14:25:00 openstack dockerd [21775]: time= "2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time=" 2020-0...Mar 30 14:25 Openstack dockerd [21775]: time= "2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time=" 2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time= "2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time=" 2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time= "2020-0...Mar 30 14:25:00 openstack dockerd [21775]: time=" 2020-0.20. .Mar 30 14:25:00 openstack dockerd [21775]: time= "2020-0...Mar 30 14:25:00 openstack systemd [1]: Started Docker A...Hint: Some lines were ellipsized Use-l to show in full.

View Docker version information

[root@Docker] # docker-- versionDocker version 18.06.0-ce Build 0ffa825 [root@Docker ~] # docker version Client: Version: 18.06.0-ce API version: 1.38 Go version: go1.10.3 Git commit: 0ffa825 Built: Wed Jul 18 19:08:18 2018 OS/Arch: linux/amd64 Experimental: falseServer: Engine: Version: 18.06.0-ce API version: 1.38 ( Minimum version 1.12) Go version: go1.10.3 Git commit: 0ffa825 Built: Wed Jul 18 19:10:42 2018 OS/Arch: linux/amd64 Experimental: false finished reading this article I believe you have a certain understanding of "how to check the Docker version and reinstall Docker". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report