First of all, let me explain that my steps are all in accordance with the official website steps
through the official website operation steps
Pass the test command
sudo docker run hello-world
To get the following command, we start the command by
sudo service docker start
The execution result is as shown in the figure below
, that is to say, it cannot be started, and it is always displayed during startup. In
this case, the official website has no way of knowing, but at this time, we can check the specific error report through the docker startup log
sudo tail -f /var/log/docker.log
By looking at the log information above, we can see that it is iptables, which is an important part of the Linux firewall. By looking at this, we know how to solve this problem, let's change our iptables configuration to iptables-legacy
Enter the command as
to here, we restart our docker
sudo service docker start
Execute our test image again
It can be seen that this problem is perfectly solved