Installation and use of CentOS6.x series of Docker

1. Check the linux version

Before installing docker, if your system is Linux (I used here is Centos6.x), need to check the kernel version, enter uname -r to check the version of the kernel at the command line, if the version is less than 3.10 is not supported by the docker , then you need to upgrade the linux kernel. Recommended to upgrade it!

2. Upgrading the kernel

linux kernel upgrade blog:

https://blog.csdn.net/qq_29440353/article/details/88059315

3. After the kernel upgrade is complete, you can install docker

4. After setting the acceleration needed to install the mirror

Proceed as follows:

1. first need to have an account cloud Ali, Ali cloud development does not register an account:

https://dev.aliyun.com/

2. Go to the accelerator page:

https://cr.console.aliyun.com/#/accelerator

I have applied for a good accelerator. It is worth noting that, everyone is different acceleration mirroring, copying someone else does not work!

3. Modify etc / sysconfig / docker profile

other_args="--registry-mirror=https://a406zxde.mirror.aliyuncs.com"

4. Run the commencement address configured acceleration

service docker restart

 

5. Common docker command

An excellent website to learn docker

https://www.w3cschool.cn/docker/docker-info-command.html

1.service docker restart to restart the service

2.docker info View docker open container and operating status, etc.

3.docker images listed mirrored running locally

 

Published 57 original articles · won praise 0 · Views 744

Guess you like

Origin blog.csdn.net/qq_42681787/article/details/104011892