DockerImages

docker build

Builds an image from a Dockerfile.

Syntax

docker build -t <name>:<tag> <context>

Examples

Build and tag an image from the current directory

docker build -t myapp:latest .

Related commands