Merge pull request #2235 from justincormack/use-library-docker

Use the upstream dind package to run docker
This commit is contained in:
Justin Cormack
2017-07-18 17:27:45 +01:00
committed by GitHub
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

@@ -39,10 +39,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
@@ -55,6 +54,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
- name: kubernetes-image-cache-control-plane

View File

@@ -39,10 +39,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
@@ -55,6 +54,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
- name: kubelet