Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
3a13e47f
Commit
3a13e47f
authored
Nov 09, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: start documenting the builder
parent
06b6cb1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
website/source/docs/builders/docker.html.markdown
website/source/docs/builders/docker.html.markdown
+41
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/builders/docker.html.markdown
0 → 100644
View file @
3a13e47f
---
layout
:
"
docs"
---
# Docker Builder
Type:
`docker`
The Docker builder builds
[
Docker
](
http://www.docker.io
)
images using
Docker. The builder starts a Docker container, runs provisioners within
this container, then exports the container for re-use.
The Docker builder must run on a machine that supports Docker.
## Basic Example
Below is a fully functioning example. It doesn't do anything useful, since
no provisioners are defined, but it will effectively repackage an image.
<pre
class=
"prettyprint"
>
{
"type": "docker",
"image": "ubuntu",
"export_path": "image.tar"
}
</pre>
## Configuration Reference
All configuration options are currently required.
*
`export_path`
(string) - The path where the final container will be exported
as a tar file.
*
`image`
(string) - The base image for the Docker container that will
be started. This image will be pulled from the Docker registry if it
doesn't already exist.
## Dockerfiles
TODO
website/source/layouts/docs.erb
View file @
3a13e47f
...
...
@@ -32,6 +32,7 @@
<li><h4>
Builders
</h4></li>
<li><a
href=
"/docs/builders/amazon.html"
>
Amazon EC2 (AMI)
</a></li>
<li><a
href=
"/docs/builders/digitalocean.html"
>
DigitalOcean
</a></li>
<li><a
href=
"/docs/builders/docker.html"
>
Docker
</a></li>
<li><a
href=
"/docs/builders/openstack.html"
>
OpenStack
</a></li>
<li><a
href=
"/docs/builders/qemu.html"
>
QEMU
</a></li>
<li><a
href=
"/docs/builders/virtualbox.html"
>
VirtualBox
</a></li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment