mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-27 22:41:16 +00:00
Merge pull request #2235 from justincormack/use-library-docker
Use the upstream dind package to run docker
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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" ]
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user