This is an example cookbook to show how to deploy a docker container from a private registry to a linux machine.
It's using a private docker repository, but you can switch to use any repo, see docker cookbook for details.
This example is also showing how to specify a tag for which docker container to run.
Tested on ubuntu, but should work with any platform the docker cookbook supports
Key | Type | Description | Default |
---|---|---|---|
['dockerdeploy']['bacon'] | Boolean | whether to include bacon | true |
Include dockerdeploy
in your node's run_list
:
{
"run_list": [
"recipe[dockerdeploy::default]"
]
}
Author:: Jim Castillo (<YOUR_EMAIL>)