It took me a little while to notice what was happening here, so I'm writing it down in case someone else needs it. Consider this example Dockerfile: FROM centos:centos7 MAINTAINER Chris Collins ENV VAR1="foo" ENV VAR2="bar" It's common practice to collapse the ENV lines into a single line, to save a layer: FROM centos:centos7 MAINTAINER Chris … Continue reading Quick Tip – Docker ENV variables
So, in one fell swoop - about a half hour - I was able to create three servers running a Docker image to serve our main website, from scratch. It’s a good thing, too.
So what we have here is that root inside the containers effectively has root access to any of these file systems or devices. If you can somehow communicate with them, then consequently, you can own the host with little effort.
I've heard the name CoreOS around a little bit over the last two months or so, but it hadn't really jumped out at me until last week when Mark McCahill mentioned it in a meeting. He'd read some pretty cool things about it: minimal OS, designed for running Docker containers, easy distributed configuration, default clustering … Continue reading How ’bout CoreOS as your Cloud base?
I've noticed the ways in which I set up new Docker images have shifted the more I work with the technology. For example, when I first started with Docker, I put almost all my configurations into the Dockerfile. This is easy - and the way Docker suggests it on their site - and the biggest … Continue reading Docker "Best Practices" (that don’t exist yet)
Got email support working in my DockerDemos Drupal Docker image. SSMTP is the way to go with these containers. There's no running daemon to have to manage, or to take up resources. The image is setup to either do nothing with mail, use a default SSL setup if you pass your own SMTP server as … Continue reading Email and Docker-based Drupal Containers
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 … Continue reading "Cloud-style" Docker Demo Container