Hi All,

I've been doing some testing of running Docker inside a rkt (fly)
container. Part of the reason for this is to be able to run various Docker
versions that are not currently shipping within the CoreOS release.

I wanted to share the (somewhat hack-ish) process so far, and see if anyone
else is interested in testing / has feedback / finds interesting ways this
is broken.

The starting point (thanks Brandon):
https://gist.github.com/philips/4ba6f9888499266b0ab09d95991e6784

I've broken the above into two pieces, a wrapper script and the service
file, to allow for running docker commands on the cli easier:

https://gist.github.com/aaronlevy/1211c6bb69d9cc60d8965f8733963c13#file-docker-wrapper-sh
https://gist.github.com/aaronlevy/1211c6bb69d9cc60d8965f8733963c13#file-docker-service

For example:

DOCKER_VERSION=1.9.1 /opt/bin/docker-wrapper version
DOCKER_VERSION=1.9.1 /opt/bin/docker-wrapper run -it busybox /bin/sh

I've also added a bind mount for root certificates:
https://gist.github.com/aaronlevy/1211c6bb69d9cc60d8965f8733963c13#file-docker-wrapper-sh-L34

At this point it seems to be working reasonably well based on some initial
testing with the coreos-kubernetes single-node installation (running CoreOS
alpha with Docker 1.9.1):

https://github.com/coreos/coreos-kubernetes/compare/master...aaronlevy:docker-in-rkt

Reply via email to