Completed a first pass at a minimal “Cloud-style”#Docker container. It’s sort of like an EC2 instance. You generate an ssh pem file, and pass the public key in as an environmental variable at docker run:
sudo docker run -i -t -d -P \ -e PUBKEY="$(cat ~/.ssh/my.pem.pub)" cloudbase
You end up with a CentOS container, and a user “clouduser” that has sudo w/no password rights.
I think this would be a good way to get some folks interested in Docker – perhaps offering something like this as a playground/sandbox to build interest.
Visit a website, get a Docker CentOS container!
I’m beginning to copy over my technology-related posts from Google+ to this blog, mostly so I have an easy-to-read record of them. This one was originally published on 19 May 2014: Cloud-style Docker Container