1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00
Files
cli/components/engine/docs/sources/commandline/command/build.rst
Guillaume J. Charmes 6bcd65ddd0 Fix typo in docs
Upstream-commit: 8984aef8999509e5e6a1cb70286e44d0508f93e0
Component: engine
2013-06-10 09:32:31 -07:00

817 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 | URL | -
Build a new container image from the source code at PATH
  -t="": Tag to be applied to the resulting image in case of success.
When a single Dockerfile is given as URL, then no context is set. When a git repository is set as URL, the repository is used as context

Examples

docker build .

This will take the local Dockerfile

docker build -

This will read a Dockerfile form Stdin without context