Users are encountering the “Device ‘docker0’ does not exist” error while trying to install Discourse on Ubuntu servers. The issue stems from Docker not running or failing to start, often due to an incorrect kernel version, missing packages, or insufficient disk space. Several users report that running service docker start resolves the issue, while others need to install linux-image-extra-$(uname -r) or reboot. Some users also mention Docker not being properly installed, with issues on Ubuntu 16.10 and kernel updates. A few suggest checking Docker’s status and ensuring the server meets requirements like 64-bit architecture and a compatible kernel. Fabian and Ian_Wright highlight confusion over root access and Docker group membership, while watchmanmonitor finds a solution by installing missing kernel modules. ajey_kulkarni notes that low disk space can prevent Docker from creating networks. codinghorror recommends using Digital Ocean for easier setup. Falco suggests checking docker.log for debugging.
Get http:///var/run/docker.sock/v1.19/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
Your docker install is failing. You should look into why Docker is failing to install on your OS. This is usually because the OS is not 64 bit, or the kernel is too old, etc.
I’ve got exactly the same problem, and have been following the same tutorial. docker info provides the same information that @Fabian has mentioned.
I’m running the suggested build of Ubuntu and can confirm that I’m on a 64bit version of it. I’m not really experienced with Linux but I couldn’t see any anything that looked like an error during the install of docker. The only thing that I’m aware that I did do which was off script was to add myself to the docker group as per the installer suggestions using:
So the wget command you listed is exactly as I ran it. However looking at the images in the docs (and you referring to root) they’re running under the root@forum user. Mine wasn’t run under root (I actually read you can’t access root on Ubuntu http://askubuntu.com/questions/91598/how-do-i-login-as-root) so I’ve been using the admin account I created ian@Ubuntu and using sudo when hitting permissions errors.
I really have no idea how you can login as root. I mean I did “ssh root@mysite.com” so I guess this should be it. Still not sure why it isn’t working then. I can’t wait trying discourse out
by the way, I found out that my kernel is 2.X. so I tried to upgrade it. But it doesnt work either:
apt-get install linux-image-generic-lts-trusty
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-image-generic-lts-trusty
edit: now somehow i got a new kernel 3.18… but i keep getting errors when trying to install docker
Unfortunately, they do not reply. No support on their forum. Will there be another way to install discourse in future? Why is it, that you have to install docker etc.? Discourse is the first software with such complicated install I met, so far all I had to do were some simple clicks on install and upload via ftp
I faced that error some minutes ago…
After reviewing my actions I discovered that I updated the lxc-docker from 1.5 to 1.7 in the VPS with ubuntu server…
So I did:
apt-get update && apt-get install lxc-docker-1.5
then sudo reboot
That removes the newest lxc-docker, that causes a conflict with the driveimage storage method and prevents the docker daemon to start correctly.
It is for sure not the cleanest solution, but is fast and safe for the moment.
In my case, it turned out to be that the docker daemon was not running, and was not started at boot time. Check your OS manual for instructions on how to start this daemon.