Commands.app

docker build

Image Management

Build an image from a Dockerfile

Options & Flags
Available options for this command
-t NAME:TAG

Tag the image

-f DOCKERFILE

Specify Dockerfile path

--no-cache

Build without using cache

Examples
Common usage examples

Build image from current directory

docker build -t myapp:1.0 .

Build without cache

docker build -t myapp --no-cache .
Related Commands
You might also find these useful