mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 20:48:11 +00:00
Merge pull request #909 from justincormack/1.12-osx
Support Docker 1.12 on OSX
This commit is contained in:
commit
b5945587a7
@ -62,7 +62,11 @@ start()
|
|||||||
NETWORK_MODE="$(mobyconfig get network | tr -d '[[:space:]]')"
|
NETWORK_MODE="$(mobyconfig get network | tr -d '[[:space:]]')"
|
||||||
NATIVE_PORT_FORWARDING="$(mobyconfig get native/port-forwarding | tr -d '[[:space:]]')"
|
NATIVE_PORT_FORWARDING="$(mobyconfig get native/port-forwarding | tr -d '[[:space:]]')"
|
||||||
if [ "${NETWORK_MODE}" = "slirp" -o "${NATIVE_PORT_FORWARDING}" = "true" ]; then
|
if [ "${NETWORK_MODE}" = "slirp" -o "${NATIVE_PORT_FORWARDING}" = "true" ]; then
|
||||||
DOCKER_OPTS="${DOCKER_OPTS} --userland-proxy-path /usr/bin/slirp-proxy"
|
if dockerd --help | grep -q -- --userland-proxy-path; then
|
||||||
|
DOCKER_OPTS="${DOCKER_OPTS} --userland-proxy-path /usr/bin/slirp-proxy"
|
||||||
|
else
|
||||||
|
cp /usr/bin/slirp-proxy /usr/bin/docker-proxy
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user