简体   繁体   中英

Why my jenkins docker container stops by itself?

I have started my jeninsci/blueocean container by

nohup docker run -u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean &

I think everything is going well even I close my commad line terminal,but the container just don't keep alive after sometime when I check it.Could anyone please tell me how to keep the container running so that I can make good use of this jenkins image?

Use docker run -d rather than nohup solved the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM