PDA

View Full Version : [SOLVED] docker restart always doesnt work



kastin
15th January 2017, 09:17 PM
~$ lsb_release -a
Description: Fedora release 25 (Twenty Five)

~$ uname -r
4.8.16-300.fc25.x86_64


Docker installed as described here https://docs.docker.com/engine/installation/linux/fedora/
including
sudo systemctl enable docker

docker-compose.yml file:

version: '2'
services:
portainer:
image: portainer/portainer
container_name: portainer
network_mode: bridge
ports:
- "9000:9000"
restart: always

After reboot, there are no started containers..

Workaround:

sudo systemctl restart docker optionally add as separate service to be executed on startup.

Someone has the same problem?

kastin
17th January 2017, 07:35 PM
seems to be docker issue https://forums.docker.com/t/restart-policy-always-not-respected-after-reboot-of-host-but-do-work-after-restart-of-docker-service-fedora-25-server/26379/3
and seems will be solved soon