docker-for-mac: use runtime: mkdir

This replaces an alpine container which existed only to run the `mkdir`.

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott 2017-08-29 13:25:39 +01:00
parent c29b433780
commit af5761d6b5
2 changed files with 2 additions and 6 deletions

View File

@ -24,12 +24,6 @@ onboot:
- name: mount
image: linuxkit/mount:4fe245efb01384e42622c36302e13e386bbaeb08
command: ["/usr/bin/mountie", "/var/lib"]
# create docker dir on mounted drive if it doesn't exist
- name: mkdir-docker
image: alpine:3.6
binds:
- /var/lib:/host_var_lib
command: ["sh", "-c", "mkdir -p /host_var_lib/docker"]
# mount-vpnkit mounts the 9p share used by vpnkit to coordinate port forwarding
- name: mount-vpnkit
image: alpine:3.6

View File

@ -23,6 +23,8 @@ services:
"--swarm-default-advertise-addr=eth0",
"--userland-proxy-path", "/usr/bin/vpnkit-expose-port",
"--storage-driver", "overlay2" ]
runtime:
mkdir: ["/var/lib/docker"]
trust:
org:
- library