O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Docker command reference

Now that we have had a look at Docker concepts, let's go through Docker commands so we can add them in our playground:

Command

What does it do

docker images

See all Docker images available on my machine.

docker run <options> <docker_image_name>:<version> <operation>

Launch a Docker image into a container.

docker ps

Check whether the Docker container is running or not.

docker exec -ti <container-id> bash

See what's inside the Docker image by actually running on bash prompt. Able to use commands such as ls and ps.

docker exec <container_id> ifconfig

Find out the IP address of a Docker container.

docker build

Build an image based on instructions in .DockerFile.

docker kill ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required