Score:0

Snap Docker service does not auto start container on reboot

it flag

I have a pihole server that I installed through docker

And I've installed docker through the snap command

sudo snap install docker

And the service is enabled and auto starts on boot.

qqerqqqr@ubuntu:~$ snap services
Service                         Startup  Current   Notes
docker.dockerd                  enabled  active    -

According to the docker docs as long as the docker daemon is running. A docker created through:

docker run -d --restart unless-stopped pihole

Should auto re-start on boot. However this is not what I observe. Any help would be appreciated.

I am running all of this on an Ubuntu Core machine on a raspberrypi4

Score:0
in flag

I'm using docker to run some services that are containerized with Docker.

to enable the auto-restart of those containers I run this scenario:

first I run my containers without --restart option

docker run -d -P --name PostgreSQL --network module_default_network masterasiyabani_postgresql:dev

then I upgrade my container and add a restart option to it :

docker update --restart=always PostgreSQL 

Now when I power on my system or restart it my container will start automatically.

XChikuX avatar
it flag
Thanks, but I'm asking with respect to Ubuntu Core. There seems to be a bug where that option just doesn't work.
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.