In the previous recipe, we took a sample image through a mini life cycle, which involved working with Docker Hub. In this recipe, we will look at building an image using a Dockerfile.
Building an image from a Dockerfile using PowerShell
Getting ready
If you did not close the Terminal after the previous recipe, you can continue. If you did launch a Terminal session and, optionally, launch PowerShell.
How to do it...
To build a Docker image automatically with the instructions from a Dockerfile, follow these steps:
- Use a text or code editor to create a Dockerfile. The name...