java - Docker stopped container restarted automatically -


i had docker container running , created using below chef command(update)

docker_container node['docker']['image']   repo node['docker']['repo']   port '80:8080'   log_opts ['max-size=1m', 'max-file=1']   command 'env'   tag node['docker']['tag']   sensitive true   action :run end 

container stopped of below command.

docker stop docker-container-name 

on checking current status down below command

docker ps -a exited 2 minutes ago 

but after around hour restarted automatically, may reason, please me understand this.

 docker ps -a 

shows currenlty same stopped container running

if you're running chef in daemon mode or cron job or running manually other reasons, restarted. told chef make sure container running (action :run), does.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -