Merge pull request #4962 from jamtur01/docdoc

Minor updates to the Docker builder docs to clarify Docker support
This commit is contained in:
Matthew Hooker 2017-06-05 10:16:17 -07:00 committed by GitHub
commit 63de443e33
1 changed files with 5 additions and 7 deletions

View File

@ -17,18 +17,16 @@ Docker. The builder starts a Docker container, runs provisioners within this
container, then exports the container for reuse or commits the image. container, then exports the container for reuse or commits the image.
Packer builds Docker containers *without* the use of Packer builds Docker containers *without* the use of
[Dockerfiles](https://docs.docker.com/reference/builder/). By not using [Dockerfiles](https://docs.docker.com/engine/reference/builder/). By not using
Dockerfiles, Packer is able to provision containers with portable scripts or `Dockerfiles`, Packer is able to provision containers with portable scripts or
configuration management systems that are not tied to Docker in any way. It also configuration management systems that are not tied to Docker in any way. It also
has a simpler mental model: you provision containers much the same way you has a simple mental model: you provision containers much the same way you
provision a normal virtualized or dedicated server. For more information, read provision a normal virtualized or dedicated server. For more information, read
the section on [Dockerfiles](#dockerfiles). the section on [Dockerfiles](#dockerfiles).
The Docker builder must run on a machine that has Docker installed. Therefore The Docker builder must run on a machine that has Docker installed. Therefore
the builder only works on machines that support Docker (modern Linux machines). the builder only works on machines that support Docker. You can learn about
If you want to use Packer to build Docker containers on another platform, use what [platforms Docker supports and how to install onto them](https://docs.docker.com/engine/installation/) in the Docker documentation.
[Vagrant](https://www.vagrantup.com) to start a Linux environment, then run
Packer within that environment.
## Basic Example: Export ## Basic Example: Export