How to auto start docker when synology restart
Asked Answered
R

3

5

When you restart your Synology Nas The docker container stops. Tell us how you can be restarted automatically turn on the docker container.

Reviere answered 23/4, 2016 at 7:15 Comment(1)
If you run your docker container from command line, you can set it to restart automatically. See forum.synology.com/enu/viewtopic.php?t=101241Kinna
E
10

For existing containers you can find the "Enable auto-restart" setting under Docker > Container > Edit > General Setttings.

The container must be stopped to edit the settings.

Evadnee answered 13/4, 2017 at 22:2 Comment(1)
Wow, that was hard to find ;) TyDesirae
B
4

When launching an image in Docker > Image, you can find "Enable auto-restart" behind the "Advanced Settings" button.

Boozer answered 2/4, 2017 at 14:11 Comment(0)
C
0

I'm new to NAS Systems myself and just ordered one (not arrived yet) but i've already worked with docker containers on linux system for a few years.

You should be able to modify the docker compose file and simply add restart: always which then would restart the container automatically if it's down.

Chaliapin answered 10/9 at 7:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.