Can we stop DevKinsta from starting containers on host startup?

Title. I only use DevKinsta for a subset of sites I work on and don’t need its containers to start on boot. Can this be disabled?

Hi @Ethan91, thanks for reaching out. You will have to do this through Docker by changing the restart policy. You can do so with this command:

docker update --restart=no devkinsta_nginx devkinsta_db devkinsta_adminer devkinsta_mailhog devkinsta_fpm

The DevKinsta containers should now only start after you start DevKinsta. Please let us know if that doesn’t work!

That worked @Kevin - thanks so much!

1 Like

this info seems to be outdated. at least for (Ubuntu) Linux

i had to “sudo” the command:

sudo docker update --restart=no devkinsta_nginx devkinsta_db devkinsta_adminer devkinsta_mailhog devkinsta_fpm

and:

sudo docker kill devkinsta_fpm && docker kill devkinsta_nginx && docker kill devkinsta_adminer && docker kill devkinsta_db && docker kill devkinsta_mailhog

Add this to stop them is they are up :
docker stop devkinsta_nginx devkinsta_db devkinsta_adminer devkinsta_mailhog devkinsta_fpm