In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to install Docker in the Ubuntu operating system", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install Docker in the Ubuntu operating system.
Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable container, publish them to any popular Linux machine, and virtualize them. Containers are fully sandboxed and will not have any interface with each other.
In today's article, let's install Docker on Ubuntu.
1. Since the docker version in the apt official library in Ubuntu may be relatively low, uninstall the old version (if any) first using the following command line
Sudo apt-get remove docker docker-engine docker-ce docker.io
two。 Update the apt package index:
Sudo apt-get update
3. Execute the following command line to enable apt to use the repository through the HTTPS protocol:
Sudo apt-get install-y apt-transport-https ca-certificates curl software-properties-common
4. Add the official GPG key provided by Docker:
Curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-
What is a GPG key? You can get the answer from teacher Ruan Yifeng's blog: introduction to GPG:
In 1991, programmer Phil Zimmermann developed the encryption software PGP to avoid government surveillance. This software is very easy to use, quickly spread, and has become a necessary tool for many programmers. However, it is commercial software and cannot be used freely. So the Free Software Foundation decided to develop a replacement for PGP, which is called GnuPG. This is the origin of GPG.
The above text comes from teacher Ruan Yifeng's blog link: http://www.ruanyifeng.com/blog/2013/07/gpg.html
5. Set up the stable repository:
Sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release-cs) stable"
Finally, update the apt package index again:
6. Install the latest version of docker-ce:
Sudo apt-get install-y docker-ce
After the installation, you can see that the Docker service has been started from / lib/systemd/system/docker.service, and the dockerd process id is 4921:
Command line ps-aux to view the process path with id 4921: / usr/bin/dockerd-H fd://
Use the command sudo docker version to view the version in which docker is installed:
Using the command sudo docker run hello-world, you can observe that the container for this test is downloaded remotely: Pulling from library/hello-world:
Then you see the printed message: Hello from Docker! Indicates that Docker is installed successfully.
At this point, I believe you have a deeper understanding of "how to install Docker in the Ubuntu operating system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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: 256
*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.