Created
January 22, 2014 09:20
-
-
Save garthk/8555808 to your computer and use it in GitHub Desktop.
Nesting Docker in Docker didn't work as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@2ccdea23768f:/# docker -d -H=unix:///var/run/docker.sock 1>/var/log/docker.log 2>/var/log/docker.err & | |
[1] 61 | |
root@2ccdea23768f:/# | |
root@2ccdea23768f:/# docker pull stackbrew/ubuntu | |
Pulling repository stackbrew/ubuntu | |
24ba2ee5d982: Error pulling image (saucy) from stackbrew/ubuntu, Driver aufs failed to get image ro0e5997dad26c: Error pulling image (13.04) from stackbrew/ubuntu, Driver aufs failed to get image ro3aa646e4f1d2: Error pulling image (precise) from stackbrew/ubuntu, Driver aufs failed to get image rootfs b74728ce6435943c0ace1a90649f136c904b1c412f556a95bb1b812457aabd76: invalid argument b1c412f556a95bb1b812457aabd76: invalid argument 1edb3f59df3f8699f8dadf20b9a2630b: invalid argument b3f59df3f8699f8dadf20b9a2630b: invalid argument nt layers | |
b74728ce6435: Error downloading dependent layers | |
0ce1be727978: Error downloading dependent layers | |
46e4dee27895: Error downloading dependent layers | |
2014/01/22 08:47:44 Could not find repository on any of the indexed registries. | |
root@2ccdea23768f:/# cat /var/log/docker.log | |
Loading containers: : done. | |
root@2ccdea23768f:/# | |
root@2ccdea23768f:/# cat /var/log/docker.err | |
[/var/lib/docker|b4afe4a1] +job initapi() | |
[/var/lib/docker|b4afe4a1.initapi()] Creating server | |
2014/01/22 08:47:25 WARNING: Your kernel does not support cgroup swap limit. | |
[/var/lib/docker|b4afe4a1.initapi()] Creating pidfile | |
[/var/lib/docker|b4afe4a1.initapi()] Setting up signal traps | |
[/var/lib/docker|b4afe4a1] Register(export) (handlers=map[initapi:0x4a5530 version:0x4c18c0]) | |
[/var/lib/docker|b4afe4a1] Register(create) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0]) | |
[/var/lib/docker|b4afe4a1] Register(stop) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300]) | |
[/var/lib/docker|b4afe4a1] Register(start) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340]) | |
[/var/lib/docker|b4afe4a1] Register(kill) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380]) | |
[/var/lib/docker|b4afe4a1] Register(serveapi) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0]) | |
[/var/lib/docker|b4afe4a1] Register(wait) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0 serveapi:0x4c7400]) | |
[/var/lib/docker|b4afe4a1] Register(tag) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0 serveapi:0x4c7400 wait:0x4c7440]) | |
[/var/lib/docker|b4afe4a1] Register(resize) (handlers=map[serveapi:0x4c7400 wait:0x4c7440 initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0 tag:0x4c7480]) | |
[/var/lib/docker|b4afe4a1] Register(commit) (handlers=map[initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0 tag:0x4c7480 resize:0x4c74c0 serveapi:0x4c7400 wait:0x4c7440]) | |
[/var/lib/docker|b4afe4a1] Register(info) (handlers=map[serveapi:0x4c7400 wait:0x4c7440 commit:0x4c7500 initapi:0x4a5530 version:0x4c18c0 export:0x4c72c0 create:0x4c7300 stop:0x4c7340 start:0x4c7380 kill:0x4c73c0 tag:0x4c7480 resize:0x4c74c0]) | |
[/var/lib/docker|b4afe4a1] -job initapi() = OK (0) | |
[/var/lib/docker|b4afe4a1] +job serveapi(unix:///var/run/docker.sock) | |
2014/01/22 08:47:25 Listening for HTTP on /var/run/docker.sock (unix) | |
2014/01/22 08:47:35 POST /v1.8/images/create?fromImage=stackbrew%2Fubuntu&tag= | |
[error] server.go:873 Image (id: 511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158) pull is already running, skipping: pull layer:511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158 is already in progress | |
[error] server.go:873 Image (id: 511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158) pull is already running, skipping: pull layer:511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158 is already in progress | |
[error] server.go:873 Image (id: 511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158) pull is already running, skipping: pull layer:511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158 is already in progress | |
[error] mount.go:11 [warning]: couldn't run auplink before unmount: exit status 22 | |
[error] mount.go:11 [warning]: couldn't run auplink before unmount: exit status 22 | |
[error] mount.go:11 [warning]: couldn't run auplink before unmount: exit status 22 | |
[error] mount.go:11 [warning]: couldn't run auplink before unmount: exit status 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Matryoshka Docker | |
FROM stackbrew/ubuntu:12.04 | |
MAINTAINER Garth Kidd <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A88D21E9 | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | |
RUN echo 'deb http://security.ubuntu.com/ubuntu precise-security main restricted' >> /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https curl | |
RUN echo 'deb https://get.docker.io/ubuntu docker main' >> /etc/apt/sources.list | |
RUN apt-get update && apt-get install -y lxc-docker | |
RUN cd /usr/local/bin && curl -OL https://raw2.github.com/dotcloud/docker/master/hack/dind && chmod a+x ./dind | |
# EXTRAS: | |
RUN apt-get install -y git-core | |
RUN cd / && git clone https://gist.github.com/8553920.git | |
ENTRYPOINT ["/usr/local/bin/dind"] | |
CMD ["/bin/bash"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
docker build -t=matroyshka . | |
docker run -privileged -rm -t -i matroyshka |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tianon/dind fails the same way, which I wasn't expecting.