Skip to content

Instantly share code, notes, and snippets.

@cloudqubes
Last active December 26, 2022 09:25
Show Gist options
  • Save cloudqubes/ba063c3e0e125a742d1ea1865166add6 to your computer and use it in GitHub Desktop.
Save cloudqubes/ba063c3e0e125a742d1ea1865166add6 to your computer and use it in GitHub Desktop.

How to build a container image from a local Dockerfile

Open terminal and switch to the folder where the Dockerfile is located.

  docker build . -t number-crunch:1.0.0

Note: Use the -t option to give a name and tag to the image. If not the name and tag fields will be blank when you list your images with docker image ls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment