Hide Forgot
I'm not able to reproduce, using the latest image. Steps taken: 1. Start a docker image with '--restart always' 2. Log into a running cfme appliance, and shutdown the appliance. 3. Check status with 'docker ps' The status of the container was "Up 1 seconds". Running the exact same test without '--restart always' kept the status as "Exited". As far as I know, the 'restart' support is provided by Docker and there is no configuration needed in the container image itself. Are you able to reproduce or is this happening only in this particular environment where the container keeps crashing?
I just used 'shutdown' command as 'always' shouldn't care how the container got shutdown. The 'cmd' is what runs when the container is started. So once the appliance is up and running, what's in CMD shouldn't matter. Not sure what's causing the restart not happening in the customer's environment. In my test, 'docker events' show 'container die' followed by 'container start'.