Score:1

Two docker installs on Ubuntu - snap and "standard"? How to remove one?

kr flag

I had a fresh of install of Ubuntu 20.04 and got docker running somehow. I don't recall how, unfortunately. Maybe it was pre-installed. But, it worked as expected and stored volumes in /var/lib/docker/volumes

The application I was running was started with docker-compose.

Fast forward a few months, and I started working on a script to stop containers, back up the volume, and then restart the container. Around the same time, it turns out my system suddenly seems to have transitioned to using the snap version of docker. The volumes are now stored at /var/snap/docker/common-var-lib-docker/volumes.

My containers were suddenly showing no data - it was left behind in the old volume location.

Meanwhile, it seems like systemd still thinks it is controlling docker, but isn't. sysctl stop docker thinks it stops docker (confirmed by sysctl status docker) but the containers are actually still running.

I was able to bring my data over by copying the volumes to the snap location, but I want to clean up the mess.

How do I get this resolved so that I only have one docker binary/config, and systemd isn't confused?

Artur Meinild avatar
vn flag
Please see my answer in this question for a solution: [Docker containers running, but not showing up in docker ps](https://askubuntu.com/questions/1315822/docker-containers-running-but-not-showing-up-in-docker-ps)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.