After reboot, containers don't come back though `--restart always` was set.
IntermediateTroubleshootingDaemon, install and permissions
Answer
Likely causes → docker service not enabled at boot, containers were created before the policy was set, or they were stopped manually with unless-stopped.
Diagnose →
systemctl is-enabled docker
docker inspect -f '{{.HostConfig.RestartPolicy}}' c
journalctl -u docker -b | grep -i restart
Fix → systemctl enable docker; docker update --restart unless-stopped c.
Prevent → Define policies in Compose files and test a reboot.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`IntermediateDocker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`Intermediate