Docker Community Forums

Share and learn in the Docker community.

Can't run a ubuntu docker container

(Claudiols1979) #1

Hi There,

I am trying to run a basic ubuntu docker container and after running the basic command:

$docker container run -d ubuntu:latest

I only get the container id but if I try to show the running containers ($docker container ls) the ubuntu is not there.
Any ideas what I am doing wrong?


(Rtrrajan) #2

try to use:
docker run -itd --name ubuntu ubuntu:latest

docker ps
docker ps -a