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 install Docker CE in Ubuntu18.04

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

Share

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

This article introduces you how to install Docker CE in Ubuntu18.04, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Uninstall the old version

If you installed the old version before, you need to uninstall it first:

$sudo apt-get remove docker docker-engine docker.io containerd runc

Set up the warehouse

Update the apt package index:

$sudo apt-get update

Enable apt to use the warehouse through HTTPS:

$sudo apt-get install\ apt-transport-https\ ca-certificates\ curl\ software-properties-common

Add the official GPG key:

$curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-

Verify your key:

$sudo apt-key fingerprint 0EBFCD88

Set which version to choose.

$sudo add-apt-repository\ "deb [arch=amd64] https://download.docker.com/linux/ubuntu\ $(lsb_release-cs)\ test"

I chose the test version.

Installation

Update the apt package index

$sudo apt-get update

Start installation

$sudo apt-get install docker-ce docker-ce-cli containerd.io

test

Sudo docker run hello-world on how to install Docker CE in Ubuntu18.04 to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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