I was trying to experiment with docker, Ubuntu 14.04, 64-bit. I managed to run an image, and I gave it the path on one of my removable drives, /media/Drive1.
Now, whenever I reboot, I see there is a /media/Drive1 with only a docker directory inside it, and the actual drive which should be Drive1 ends up mounted on /media/Drive11, and this happens every reboot - even when I unmount these drives, and do a sudo rm -rfv /media/Drive1 before rebooting!
So something probably creates /media/Drive1 before it is fully mounted, and I guess that something is docker, because when I boot, I have:
$ ps axf | grep docker
2085 ? Ssl 0:00 /usr/bin/docker -d
So, how can I disable the docker autostart, so it doesn't interfere with the mounting of external USB drives at boot?
docker-volume-local-persist.serviceanddocker.socketas well. To list any docker service in systemd, type:systemctl list-unit-files | grep -i docker– chefarov Mar 08 '18 at 16:31docker-compose upwouldn't work anymore – Taylor Jan 07 '21 at 13:38sudo systemctl disable docker.service docker.socket– Burak Aug 21 '21 at 13:13sudo systemctl enable docker.service docker.socket– Enrico Feb 16 '22 at 18:40