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 upgrade docker

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you "how to upgrade docker", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to upgrade docker" this article.

The first installation method: (apt-get)

Apt-get install-y docker.io

Ln-sf / usr/bin/docker.io / usr/local/bin/docker

Sed-I `$ acomplete-F _ docker docker` / etc/bash_completion.d/docker.io

Installed version information:

How to upgrade: (to install the latest version from the Docker official source, first install apt-transport-https and add the Docker official source)

Sudo apt-get install apt-transport-https

# Add the Docker repository key to your local keychain

Sudo apt-key adv-keyserver keyserver.ubuntu.com-recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9

# Add the Docker repository to your apt sources list.

Sudo sh-c "echo deb https://get.docker.io/ubuntu docker main > / etc/apt/sources.list.d/docker.list"

# update your sources list

Sudo apt-get update

# then install the latest version of docker with the following command:

Apt-get install-y lxc-docker

# to update later:

Apt-get update-y lxc-docker

Ln-sf / usr/bin/docker / usr/local/bin/docker

Version information after upgrade:

The upgrade was successful.

These are all the contents of the article "how to upgrade docker". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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