Install docker with one click (command)

Today I will give you the one-click installation instructions for docker (the script currently seems to be only applicable to Ubuntu and Debian)

official order

curl -sSL https://get.docker.com/ | sh

Due to the peculiar network environment in our country (unless you have scientific Internet access or you are abroad, you can use the official docker command)

If you do not use official commands in China, there is a certain probability that the installation will be successful. Otherwise, there is a high probability that an error will be reported or an error will be reported due to incorrect files. Therefore, it is strongly recommended to use domestic mirror sources in China.

Domestic recommendations:

1. Alibaba Cloud

curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -

2.DaoCloud (Personally tested DaoCloud is more effective)

curl -sSL https://get.daocloud.io/docker | sh

After docker installation is completed (reference)

Guess you like

Origin blog.csdn.net/Lemon1000/article/details/128537643