Reputation:
When you restart your Synology Nas The docker container stops. Tell us how you can be restarted automatically turn on the docker container.
Upvotes: 5
Views: 13787
Reputation: 81
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.
Upvotes: 0
Reputation: 111
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.
Upvotes: 11
Reputation: 10239
When launching an image in Docker > Image, you can find "Enable auto-restart" behind the "Advanced Settings" button.
Upvotes: 4