top | item 6329246

Parameterized Docker Containers

31 points| bryanh | 12 years ago |blog.james-carr.org | reply

3 comments

order
[+] mattj|12 years ago|reply
This is cool, but probably the biggest appeal of docker to me is never having to use puppet again.
[+] carrja99|12 years ago|reply
Although I used puppet in my example to run and manage docker containers, you don't have to. ;)

Here's the raw run command with the environment parameters passed in:

docker run -e SETTINGS_FLAVOR=prod -e AWS_ACCESS_KEY_ID=$aws_access_key -e AWS_SECRET_KEY=$aws_secret_key -e S3_BUCKET=$s3_bucket -e WORKER_SECRET_KEY=$worker_key -p 5000:5000 -m 0 samalba/docker-registry

Just slap that badboy in your favorite supervisory process manager (or even just run it) and you're good to go.

[+] peterwwillis|12 years ago|reply
What configuration management tool are you using instead of puppet?