Docker installation

 what is Docker

Docker is a container management tool

 

Docker can solve those problems

1) Quickly create environments (dev, test, production)

2) Overall delivery (running environment + code)

3) Environment consistency assurance, from development, testing and to production environments

4) Better done devops

Install Docker

1) Check the kernel version (3.10.0), you can check your own kernel version through the command

2) Execute the installation command

3) curl –sSL https://get.docker.com/ | sh ), requires this host to be able to access the official website, otherwise the installation will fail

Example

Determine the kernel version of the operating system, 3.10.0 or later is recommended.

 

Make sure there is the following command,

 If the above command is not available, use the following command to install it. If it is already there, it will not be executed.

Execute the installation script provided on the official website. After the script is executed, some docker packages will be downloaded by default. The speed of this installation depends on the speed of the network, and the installation is successful.

 

 Use the following command to check the installed version.

After the installation is successful, start docker.

and install it to boot

Confirm whether docker has been started, we can see that docker has started normally now.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324847088&siteId=291194637