Open Jenil2910 opened 6 years ago
Can you paste the logs: journalctl -fu docker
Try creating a new bridged network interface and restart the docker service:
go to /etc/network/interfaces and add these lines:
auto docker0
iface docker0 inet static
address 172.17.0.1
netmask 255.255.255.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
then:
sudo systemctl restart networking
then restart docker service:
sudo systemctl restart docker
good luck
Thanks to @hamzawix for the solution since I run to the same ~issue~ accident myself;
I just added the above lines in a new file as in /etc/network/interfaces.d/dockerif
Restarting docker service solved the issue
sudo service docker restart
I accidently deleted the docker0 bridge and now i cannot get docker running by any means. Following are the things i have tried:
https://www.ibm.com/developerworks/community/blogs/powermeup/entry/Setting_up_a_Docker_Bridge?lang=en
https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-from-a-package
But nothing seems to work. Is there a way i can get docker runnning again ?
Reinstallation attempt
I tried reinstalling as per https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1, But no luck.
Steps to reproduce the behavior
To reproduce,
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.) None particular, only Ubuntu 16.04 with GNOME