Where is my Dockerfile with "docker pull ubuntu"?

Posted June 20, 2016 12.1k views

I really don’t see the point of this tutorial:

Since it relies on a docker pull ubuntu image, where can I edit that Dockerfile to customize it further? Shouldn’t you typically rely on a Dockerfile for docker containers? The tutorial mentions that Dockerfiles are “beyond the scope” of the tutorial which I just find odd.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @alxvallejo,

In this case, the Docker image is already builded from a Dockerfile, and stored on the Docker hub platform.

When you run the pull command, Docker will just download the latest image of “ubuntu” from

If you click the “xenial/Dockerfile” link on this page, you will see the actual Dockerfile used to build the image.

If you need to customize this image, you should create a Dockerfile, with the first line:

FROM ubuntu

Then you can add all your customizations.