Get startedGet started for free

Single-stage build

Your team is working on containerizing your applications and has had some success at moving everything over to Docker images. Unfortunately, the size of the containers is taking a considerable amount of transfer and is causing difficulty for some beta customers. Your team lead asks you to look at the configuration and get a feel for the sizing of the current containerized applications.

NOTE: This application is built using the Go programming language - your team lead does not expect you to modify any of the Go source code, simply to use Docker to create the containers as necessary.

This exercise is part of the course

Intermediate Docker

View Course

Exercise instructions

  • Examine the Dockerfile to become familiar with its configuration. NOTE: No changes are required for this step.
  • Use the Docker command docker build . -t single-stage-app to build the container in the terminal window.
  • Create and run a new container instance using this image. You'll receive a message stating Application running... if you do this successfully.
  • Determine the size of the resulting Docker image.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise