In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "the installation steps of docker". In the daily operation, I believe many people have doubts about the installation steps of docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "installation steps of docker". Next, please follow the editor to study!
1. Uninstall the old version
Sudo apt-get remove docker docker-ce docker-engine docker.io
2. Install the image warehouse for the first time
2.1 Update the apt package index
Sudo apt-get update
2.2 add docker official GPG key
Curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-
2.3 configure the warehouse
Vi / etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe Multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable# deb-src [arch=amd64] https://download.docker.com / linux/ubuntu xenial stable# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stabledeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
3. Install docker-ce
3.1 updated version
Sudo apt-get update
3.2 installation
3.2.1 install the latest version
Sudo apt-get install docker-ce
3.2.2 install the specified version
Sudo apt-get install docker-ce=
"install the 17.03.2~ce-0~ubuntu-xenial version
Sudo apt-get install docker-ce=17.03.2~ce-0~ubuntu-xenial
Possible errors
This problem is caused by the low version of libltdl7 and there is no later version of ubuntu16.04 by default.
Download:
Wget http://launchpadlibrarian.net/236916213/libltdl7_2.4.6-0.1_amd64.deb
Installation:
Sudo dpkg-I libltdl7_2.4.6-0.1_amd64.deb
Install again = "Jump 3.1"
4. Test the installation
Sudo docker run hello-world
The installation is successful!
At this point, the study on the "installation steps of docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.