Build Docker Image from Dockerfile

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


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

Free account — save snippets into your own collections.