In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how ununtu installs Docker CE. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Docker pre-installation preparation-the operating system list needs to meet the following versions of ubuntu
Cosmic 18.10
Bionic 18.04 (LTS)
Xenial 16.04 (LTS)
Uninstall the old version of docker. If you have installed it, please do the following. If you use an ordinary account, please do the following. Ignore sudo if you have root permission. Skip this step when installing the system for the first time.
$sudo apt-get remove docker docker-engine docker.io containerd runc
Install docker ce
1. Set up the warehouse
$sudo apt-get update
two。 The installation package allows apt to use the repository through HTTPS
$sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3. Add the official GPG key for Docker
$curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-
4. Authentication key
$sudo apt-key fingerprint 0EBFCD88
It is shown as follows: prove that the installation was successful
Pub rsa4096 2017-02-22 [SCEA] 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88uid [unknown] Docker Release (CE deb) sub rsa4096 2017-02-22 [S]
5. Install stable version warehouse
$sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release-cs) stable"
6. Install docker ce
# Update the apt package index $sudo apt-get update
7. Install the latest version of docker ce or skip to the next step to install the specified version
$sudo apt-get install docker-ce docker-ce-cli containerd.io
8. Install the specified version of docker ce
$apt-cache madison docker-cedocker-ce | 5https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu 18.09.6room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 5VOR 18.09.5room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 5Vera 18.09.4room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu Bionic/stable amd64 Packagesdocker-ce | 5https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu 18.09.3room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 5VOR 18.09.2room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 5https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu 18.09.1room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable Amd64 Packagesdocker-ce | 5VV 18.09.0room3-0~ubuntu-bionic | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 18.06.3~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 18.06.2~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 18.06.1roomCEO 3- 0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 18.06.0~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packagesdocker-ce | 18.03.1~ce~3-0~ubuntu | https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu bionic/stable amd64 Packages
Taking the version of 5RV 18.09.6 0~ubuntu-bionic as an example, execute the following command
$sudo apt-get install docker-ce=5:18.09.6~3-0~ubuntu-bionic docker-ce-cli=5:18.09.6~3-0~ubuntu-bionic containerd.io
9. Run the test instance, hello-world image, which will be downloaded automatically if there is no such image
$sudo docker run hello-worldUnable to find image 'hello-world:latest' locallylatest: Pulling from library/hello-world1b930d010525: Pull complete Digest: sha256:41a65640635299bab090f783209c1e3a3f11934cf7756b09cb2f1e02147c6ed8Status: Downloaded newer image for hello-world:latestHello from docking this message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $docker run-it ubuntu bashShare images, automate workflows, and more with a free Docker ID: https://hub.docker.com/For more examples and ideas, visit: https://docs.docker.com/get-started/
Introduction to uninstalling docker ce
1. Uninstall docker ce
$sudo apt-get purge docker-ce
two。 Images, containers, volumes, or custom configuration files on the host are not automatically deleted. Delete all images, containers, and volumes
$sudo rm-rf / var/lib/docker Thank you for reading! This is the end of this article on "how to install Docker CE in ununtu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.