nginx - Managing docker image throw systemctl -
i built docker image containing nginx configuration lets call when build manually building , running no errors when decided manage docker image throw systemctl it's giving me no errors either when type: sudo systemctl status a. service it's inactive(dead)
here output given when managed throw systemctl
what can make active on startup? in advance
you can't kill non existing container 1 on execstartpre field. can first : check if container running , kill if needed. think it's complicated.
if have recent docker version (> 1.10), prefer restart policies : https://docs.docker.com/engine/admin/start-containers-automatically/
docker run --restart mynginx
Comments
Post a Comment