How to install under Linux
Bloggers use CENTOS7, others are very similar.
I am based on the official website of the tutorial to do the operation, the address is
https://docs.docker.com/engine/installation/linux/centos/#install-using-the-repository
At first they balabala a whole lot, to be aware that in x64 CentOS can install Docker
The official offers two ways to install with a storage repository, one to install from a package, and two to install, but the first is officially recommended.
We need to hit a bunch of orders.
1
sudo yum install-y yum-utils device-mapper-persistent-data lvm2
2
sudo yum-config-manager--enable Extras
3
sudo yum-config-manager \--add-repo \ Https://download.docker.com/linux/centos/docker-ce.repo
Then it can be installed, there will be two hints in the middle, directly y OK can
sudo yum install Docker
Wait a moment will be installed, the installation is actually completed, but for some reason we need to configure acceleration, then we have to change the/etc/docker/daemon.json file
After the completion, we need to reload the configuration file and then launch the Docker
sudo systemctl daemon-reload
sudo systemctl restart Docker
This can be a simple look at the effect
sudo Docker run Microsoft/dotnet-samples
It all ends here.
Docker Toss-linux under installation