1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00
Files
cli/components/engine/docs/sources/commandline/command/build.rst
Guillaume J. Charmes fc9613526d Update docker build docs
Upstream-commit: 28d5b2c15acc6e088a0abd2099a00ba1180beb3e
Component: engine
2013-05-30 12:35:19 -07:00

669 B

title
Build Command
description
Build a new image from the Dockerfile passed via stdin
keywords
build, docker, container, documentation

build -- Build a container from a Dockerfile

Usage: docker build [OPTIONS] PATH | -
Build a new container image from the source code at PATH
  -t="": Tag to be applied to the resulting image in case of success.

Examples

docker build .

This will take the local Dockerfile

docker build -

This will read a Dockerfile form Stdin without context