lundi 9 mars 2015

Container exits immediately in detached mode


Vote count:

0




I suppose a docker container run at background could be held alive. But the truth is container always exists immediately in detached mode.



docker run -d busybox
ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
42d4db933e8a busybox:latest /bin/sh 11 seconds ago Exited (0) 11 seconds ago sharp_sammet


How to persist this session without faking doing some loop jobs to prevent being closed.



asked 40 secs ago







Container exits immediately in detached mode

Aucun commentaire:

Enregistrer un commentaire