Build your own image (Engine)
Build your own image
The whalesay
image could be improved. It would be nice if you didn’t have to think of something to say and you didn’t need to type as much to get whalesay
to talk.
docker run docker/whalesay cowsay boo-boo
In this next section, you will improve the whalesay
image by building a new version that “talks on its own” and requires fewer words to run.
Step 1: Write a Dockerfile
In this step, you use a text editor to write a short Dockerfile. A Dockerfile is a recipe which describes the files, environment, and commands that make up an image. Your recipe is going to be very short.
You run these steps in a terminal window on Linux or macOS, or a command prompt on Windows. Remember that if you are using macOS or Windows, y