Docker build

From NovaOrdis Knowledge Base
Revision as of 04:37, 20 November 2017 by Ovidiu (talk | contribs) (→‎--rm)
Jump to navigation Jump to search

External

Internal

Overview

Takes a Dockerfile and produces a Docker image. The default location for the Dockerfile is the current directory.

docker build --rm=true -t <tag> .

Options

--rm

--rm=true

Remove intermediate containers after a successful build (default true).

-t, --tag

Name and optionally a tag in the 'name:tag' format (default []).