Quantcast
Channel: Why docker container exits immediately - Stack Overflow
Viewing all articles
Browse latest Browse all 23

Answer by Kert Kukk for Why docker container exits immediately

$
0
0

Add this to the end of Dockerfile:

CMD tail -f /dev/null

Sample Docker file:

FROM ubuntu:16.04# other commandsCMD tail -f /dev/null

Reference


Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>