Get startedGet started for free

Creating your own Dockerfile

While it's possible to download images for many use cases, an image might not always meet your exact needs. In that case, you can create a new image based on an existing one that closely matches your requirements. Let's go through the steps to create a Dockerfile from scratch, build on top of an existing Ubuntu image, add your instructions, and then build it into a new image.

This exercise is part of the course

Introduction to Docker

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise