Use the upstream dind package to run docker

It is pretty close to our docker package, if we adjust the command
that is run to avoid the actual dind startup script. We can't use
the normal docker image as it does not have mkfs and so on.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-07-17 20:37:01 +01:00
parent 5df1dbc23e
commit a4650b242f
10 changed files with 20 additions and 66 deletions

View File

@@ -27,10 +27,9 @@ services:
- name: ntpd
image: linuxkit/openntpd:19370f5d9bec84eb91073b7196b732f1301d9c90
- name: docker
image: linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190
image: docker:17.06.0-ce-dind
capabilities:
- all
net: host
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
@@ -39,6 +38,7 @@ services:
- /lib/modules:/lib/modules
- /var/run:/var/run
- /var/html:/var/html
command: ["/usr/bin/docker-init", "/usr/bin/dockerd"]
- name: compose
image: linuxkitprojects/compose:0535e78608f57702745dfd56fbe78d28d237e469
binds:

View File

@@ -27,10 +27,9 @@ services:
- name: ntpd
image: linuxkit/openntpd:19370f5d9bec84eb91073b7196b732f1301d9c90
- name: docker
image: linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190
image: docker:17.06.0-ce-dind
capabilities:
- all
net: host
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
@@ -39,6 +38,7 @@ services:
- /lib/modules:/lib/modules
- /var/run:/var/run
- /var/html:/var/html
command: ["/usr/bin/docker-init", "/usr/bin/dockerd"]
- name: compose
image: linuxkitprojects/compose:0535e78608f57702745dfd56fbe78d28d237e469
binds:

View File

@@ -1,4 +1,4 @@
FROM linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190
FROM docker:17.06.0-ce-dind
ADD . /images
ENTRYPOINT [ "/bin/sh", "-c" ]
CMD [ "for image in /images/*.tar ; do docker image load -i $image && rm -f $image ; done" ]

View File

@@ -38,10 +38,9 @@ services:
- name: sshd
image: linuxkit/sshd:89b2e91d7d1bf2f40220be0e3ed586e74746cceb
- name: docker
image: linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190
image: docker:17.06.0-ce-dind
capabilities:
- all
net: host
pid: host
mounts:
- type: cgroup
@@ -54,6 +53,7 @@ services:
- /etc/cni:/etc/cni:rshared,rbind
- /opt/cni:/opt/cni:rshared,rbind
rootfsPropagation: shared
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
- name: kubernetes-image-cache-common
image: linuxkit/kubernetes:latest-image-cache-common
binds:

View File

@@ -38,10 +38,9 @@ services:
- name: sshd
image: linuxkit/sshd:89b2e91d7d1bf2f40220be0e3ed586e74746cceb
- name: docker
image: linuxkit/docker-ce:9b937df179bdbebbc70243779978057df0b54190
image: docker:17.06.0-ce-dind
capabilities:
- all
net: host
pid: host
mounts:
- type: cgroup
@@ -54,6 +53,7 @@ services:
- /etc/cni:/etc/cni:rshared,rbind
- /opt/cni:/opt/cni:rshared,rbind
rootfsPropagation: shared
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
- name: kubernetes-image-cache-common
image: linuxkit/kubernetes:latest-image-cache-common
binds: