Jump to content

Docker Start all with Autostart


Recommended Posts

  • 3 weeks later...
  • 1 year later...
  • 1 month later...
  • 4 months later...

Since the containers still exist, but are only in the exited status, you can start all of them via

docker start $(docker ps -q --filter "status=exited")

 

11 hours ago, Kudagra said:

Does anyone know if it's possible for a script to detect individual docker's "Autostart" setting? If so, you could create a script that only starts all dockers with the setting enabled.

For someone with some knowledge in bash that is pretty easy. It is just some text processing. All information are stored in the template in /boot/config/plugins/dockerMan/templates-user. I am doing something similar with description of the shares.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...