Quick Guide to 

Docker Commands

docker login  docker login localhost:8080

1. Login to a Registry

Looking for more Docker Commands?

2. Download/Pull an image or set of images

docker image pull nginx  docker image pull eon01/nginx localhost:5000/myadmin/nginx

Looking for more Docker Commands?

3. Run a container

docker container run -it --name XYZ -d eon01/infinite

Looking for more Docker Commands?

4. Sending a SIGKILL in the Docker

docker container kill nginx

Looking for more Docker Commands?

5. Command for Connecting to an Existing Container

docker container attach nginx

Looking for more Docker Commands?

6. Command for Public Ports

docker container port infinite

Looking for more Docker Commands?

7. Commands for tagging and building

docker build -t eon/infinite

Looking for more Docker Commands?

8. Creating a Dockerfile from a URL

curl example.com/remote/Dockerfile | docker build -f -

Looking for more Docker Commands?

docker container commit nginx

9. Making an Image Out of a Container

Looking for more Docker Commands?

10. Command for Removing all Exited Containers

docker container rm $(docker container ls -a -f status=exited -q)

Looking for more Docker Commands?

Want to  learn more about Docker and all that it has to offer?

Take your knowledge of Docker to next level & discover everything you need to know.

Step Up Your Game with InterviewBit Web Stories

Don't miss out on the chance to upskill yourself with IntervewBit's engaging web stories.