These days to study how to modular development, so to play with Docker, found it a little skin, according to the official website tutorial after installation run sudo Systemctl start Docker. As a result, he couldn’t run. How can he tell me to Hello world if he can’t run?

(base) [steven@localhost ~]$ sudo systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
Copy the code

Run journalctl -xeu docker.service

Jul 07 20:10:56 localhost.localdomain systemd[1]: docker.service: Start request repeated too quickly.
Jul 07 20:10:56 localhost.localdomain systemd[1]: docker.service: Failed with result 'exit-code'.
Copy the code

The solution

Json or sudo rm -rf /var/lib/docker, but it doesn’t work. Fortunately, Bing has found a reliable one on Stack Overflow. (62 Useful points)

(base) [steven@localhost ~]$ firewall-cmd --get-active-zones FedoraWorkstation interfaces: ens33 libvirt interfaces: virbr0 trusted interfaces: docker0 (base) [steven@localhost ~]$ sudo firewall-cmd --zone=docker --change-interface=docker0 success (base) [steven@localhost ~]$ firewall-cmd --get-active-zones FedoraWorkstation interfaces: ens33 docker interfaces: Libvirt interfaces: virbr0 (base) [steven@localhost ~]$sudo systemctl start dockerCopy the code

Look at the lovely Hello World coming out:

(base) [steven@localhost ~]$ sudo docker run hello-world

Hello from Docker!
Copy the code

reference

  • [Failed to start daemon: Error initializing Network controller: Error Creating default bridge network

] (stackoverflow.com/questions/6…).