build

docker build <Dockerfile location>

Create an image. The image will be stored in the local Docker image registry.

This must be provided the location of the Dockerfile. If it is in the current directory, then . can be provided.

Tags

  • -t <name> tags the build.