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
Related in this category
Log in to save
Free account — save snippets into your own collections.