Install Docker in Ubuntu
Introduction
A lightweight container similar to a virtual machine.
Official Website https://www.docker.com
The official website has an online simulation environment:
Https://www.docker.com/tryit/
Install
According to the official website, it supports a lot of operating systems, basically a lot of which I have never seen before.
My testing environment is Ubuntu Kylin 14.04.
Requirement
We recommend that you use 64-bit, with a minimum kernel of 3.10. You can use uname-r to view
Vc + 436Osudm3vb3pydy/ydLUzPi5/dK70Kmy2df3oaM8L3A + Cgo8aDIgaWQ9 "Installation Process"> The sudo permission is required to install wget
Which wget
If not, use
Sudo apt-get update
Sudo apt-get install wget
Install
Get package
Wget-qO-https://get.docker.com/| sh
Q is followed by an uppercase letter O
After the prompt is successful, run:
Sudo docker
Output:
Restart the system and run:
Sudo docker run hello-world
It downloads a test image and runs it. After several operations, I finally downloaded the file:
A problem occurred:
I am dealing with the problem during the rest time, and the time is tight. I will analyze the reasons later.
Directly test the use of official ubuntu Images
Sudo docker pull ubuntu
Run hello world
Sudo docker run ubuntu/bin/echo hello world
Next time, take the time to continue learning.