terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Docker containers have restart=always option by default #70

Closed theodorosploumis closed 9 years ago

theodorosploumis commented 9 years ago

When I start the computer I see that the terra* containers are started. I can stop them one by one but they start again after reboot. This happens with the terra-server as also as any other terra app.

I can see the restart=always option on https://github.com/terra-ops/terra-app/blob/master/src/terra/Factory/EnvironmentFactory.php. The default docker option is restart=no.

I am applying a patch in case we want to remove the restart policy.

jonpugh commented 9 years ago

Yes, perfect.

Restarting on failure is what we want.

Thanks!

jonpugh commented 9 years ago

Hmm, I am not sure this was a good idea.

In my initial testing, when you reboot the server manually the containers don't start along with it...

That is definitely not desired behavior...