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

Why docker container exits immediately

I run a container in the background using docker run -d --name hadoop h_Serviceit exits quickly. But if I run in the foreground, it works fine. I checked logs usingdocker logs hadoopthere was no error....

View Article


Answer by Amayuru Upanith for Why docker container exits immediately

Try using this command, it has been worked for me.docker run -it --entrypoint=/bin/bash imageNote-image should be replaced with the actual docker image you have created.Container is running now(after...

View Article


Answer by z atef for Why docker container exits immediately

This worked for me command: tail -f /dev/null, by adding in docker-compose.ymlversion: '3.8'services: my_container: image: your_image command: tail -f /dev/null

View Article
Browsing all 23 articles
Browse latest View live


Latest Images