Brief introduction
A lightweight container similar to a virtual machine.
Official website https://www.docker.com
Officially there is an online simulation environment:
https://www.docker.com/tryit/
Installation
From the official website, it supports a very large number of operating systems, basically many I have not seen.
My test environment is Ubuntu Kylin 14.04
Demand
It is recommended to use 64-bit,kernel minimum 3.10, which can be viewed using uname-r
I use the Ubuntu version is relatively high, the official introduction can skip some operations.
The installation process installation requires Sudo permissions to determine that wget is installed
which wget
If not installed, use the
sudo apt-get update
sudo apt-get install wget
To install
Get package
wget-qo-https://get.docker.com/| Sh
Q followed by capital letter O
After the prompt succeeds, run:
sudo docker
Output:
Restart the system and run:
sudo Docker run Hello-world
It will download a test image and run it. I have been operating several times and finally downloaded it:
Tip a bit of a problem:
I deal with the rest time, the time is more tense, later to analyze the reason here.
Direct test using the official Ubuntu image
sudo docker pull Ubuntu
Run Hello World
sudo docker run Ubuntu/bin/echo Hello World
Take the time to continue studying again.
Docker experience installation under Ubuntu