About win11 debian wsl subsystem installation start docker has been starting, can not start

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

insert image description here
To get the following command, we start the command by

sudo service docker start 

The execution result is as shown in the figure below
insert image description here
, 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

insert image description here
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
insert image description here
to here, we restart our docker

sudo service docker start 

Execute our test image again
insert image description here

It can be seen that this problem is perfectly solved

Guess you like

Origin blog.csdn.net/weixin_39370315/article/details/132094077