In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to install docker in Ubuntu, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Ubuntu version requirements
Docker can only be installed on 64-bit systems, and the Linux kernel version is at least 3.10 or higher.
Start the installation:
[xinsz@linux:~$ uname-aLinux linux 3.13.0-24-generic # 46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 GNU/Linux
Optional: it is recommended to install the linux-image-extra kernel package, which allows you to use the aufs storage driver. Use the following command to install:
$sudo apt-get update$ sudo apt-get install linux-image-extra-$ (uname-r) updates the apt source
Docker's apt library includes Docker 1.7.1 and later:
Add a new gpg key:
$sudo apt-key adv-keyserver hkp://p80.pool.sks-keyservers.net:80-recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Open the / etc/apt/sources.list.d/docker.list file and, for Ubuntu 14.04 systems, write to it:
Deb https://apt.dockerproject.org/repo ubuntu-trusty main
After the save is closed, update the apt package index:
$sudo apt-get update
If there is an old version to remove:
$sudo apt-get purge lxc-docker
Verify that the apt command is obtained from the correct library:
$sudo apt-cache policy docker-engine installs Docker
After ensuring that the installation prerequisites are complete, you can install Docker by following these steps:
Install Docker
$sudo apt-get install docker-engine
Start the Docker daemon:
$sudo service docker start
Verify that Docker is installed successfully:
$sudo docker run hello-world
This command downloads a test image and runs it in the container. When the container runs, it prints a prompt and exits.
Update Docker
Use apt-get to update Docker to the latest version:
$sudo apt-get install docker-engine Uninstall
If you uninstall the Docker installation package:
$sudo apt-get purge docker-engine
If you uninstall the Docker package and its dependent packages:
$sudo apt-get autoremove-purge docker-engine
The above command does not delete images, containers, volumes, and other data. If you want to remove these, run the following command:
The above $sudo rm-rf / var/lib/docker is how to install docker in Ubuntu. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.
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.