Build Docker Image from Dockerfile

Build an image from the Dockerfile in the current directory and tag it.

Builds a Docker image from a Dockerfile in the current directory and tags it. The -t flag sets the image name and tag. Build context (files sent to daemon) is the current directory.

When you need this: When creating a custom Docker image for your application to be deployed or pushed to a registry.

Variables

Command


        
7 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.