Difficulty: beginner
Estimated Time: 10-15 minutes

BoxBoat Logo

Review Lab

Before we move on to new content, let's review what we did yesterday.

  • The Docker CLI
  • Dockerfiles
  • Running applications in Docker

Please email feedback to: [email protected]

Now that we've gone over the content from yesterday, let's dive right into orchestration.


Step 1 of 4

Docker CLI

The Docker CLI is pretty straightforward. Here are our common commands:

docker container

  1. run --> create and configure a new container
  2. stop --> stop a running container
  3. rm --> remove a stopped container
  4. exec --> run a command inside a container
  5. logs --> get logs from a container
  6. ls --> view running containers
  7. ls -a --> view all containers
  8. inspect --> get data about a container

docker image

  1. build --> build a new Docker image
  2. tag --> tag an old image as a new one
  3. ls --> view all images
  4. history --> view layers of an image
  5. search --> search Docker hub for images
  6. rm --> remove a Docker image
  7. inspect --> get data about an image

docker volume

  1. create --> create a new volume
  2. ls --> view volumes
  3. inspect --> get data about a volume

docker network

  1. create --> create a new network
  2. ls --> view networks
  3. inspect --> get data about a network

These commands are our bread and butter of running containers. We've gotten the most practice with docker container run to configure our containers.