Merge pull request #752 from mwhooker/doc_formatting_docker

Documentation/docker: formatting
This commit is contained in:
Matthew Hooker 2013-12-25 02:36:09 -08:00
commit f79696c253
1 changed files with 11 additions and 7 deletions

View File

@ -40,8 +40,9 @@ no provisioners are defined, but it will effectively repackage an image.
## Configuration Reference ## Configuration Reference
Configuration options are organized below into two categories: required and optional. Within Configuration options are organized below into two categories: required and
each category, the available options are alphabetized and described. optional. Within each category, the available options are alphabetized and
described.
Required: Required:
@ -60,13 +61,16 @@ Optional:
## Using the generated artifact ## Using the generated artifact
Once the tar artifact has been generated, you will likely want to import, tag, and push it to a container repository.Until packer supports management of the docker image metadata, this process is manual. For example, the following will import mycontainer-123456789.tar as the repository registry.mydomain.com/mycontainer, tagged with 'latest': Once the tar artifact has been generated, you will likely want to import, tag,
and push it to a container repository. Until packer supports management of the
docker image metadata, this process is manual. For example, the following will
import `mycontainer-123456789.tar` to the repository
`registry.mydomain.com/mycontainer`, tagged with `latest`:
<pre class="prettyprint"> sudo docker import - registry.mydomain.com/mycontainer:latest < mycontainer-123456789.tar
sudo docker import - registry.mydomain.com/mycontainer:latest < mycontainer-123456789.tar
</pre>
You can then add additional tags and push the image as usual with docker tag and docker push, respectively. You can then add additional tags and push the image as usual with `docker tag`
and `docker push`, respectively.
## Dockerfiles ## Dockerfiles