Quick Actions
docker build
Description
Build an image from a Dockerfile.
Command
docker build
Examples
Build image with tag
docker build -t my-app:latest .
Build without cache
docker build --no-cache -t my-app:latest .
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-t |
string | No | Name and optionally a tag in the 'name:tag' format |
-f |
string | No | Name of the Dockerfile |
--no-cache |
string | No | Do not use cache when building the image |
Command Info
Category:
Image Management
Type:
Docker
Views:
12
Status:
Active
Tags
image
build
dockerfile