Docker Community Forums

Share and learn in the Docker community.

Docker container is not starting up

I have created docker image using Dockerfile and image is created successfully. But when I am trying run using “docker run” command , I am getting container id but its not in running state. Have checked with docker ps or docker container ls not getting any output for this container.

Can anyone suggest where can check for further on this?

Can you first build Your image?
Can share me a Which command to run docker run
docker run --name test -it debian

Thanks I got the issue. For Dockerfile CMD/Entrypoint was missing .

what is the difference between cmd and entrypoint.Where i have to use entrypoint or cmd

Mostly entrypoint is used as the program you want to run at container start, and cmd is used for arguments for the entrypoint program.

Hii terpz for reply.Can you say in practical way.