Commit f967d2f5 authored by Konstantin Pavlov's avatar Konstantin Pavlov

Fix dind image.

parent b0181182
...@@ -10,7 +10,11 @@ RUN apk add --no-cache \ ...@@ -10,7 +10,11 @@ RUN apk add --no-cache \
iptables \ iptables \
xfsprogs \ xfsprogs \
xz \ xz \
openssh openssh \
bash \
openjdk8-jre-base \
git \
make
# TODO aufs-tools # TODO aufs-tools
......
#!/bin/sh #!/bin/sh
set -ex set -ex
ssh-keygen -A dind docker daemon \
/usr/sbin/sshd -e
if [ "$#" -eq 0 -o "${1:0:1}" = '-' ]; then
set -- docker daemon \
--host=unix:///var/run/docker.sock \ --host=unix:///var/run/docker.sock \
--host=tcp://0.0.0.0:2375 \ --host=tcp://0.0.0.0:2375 \
--storage-driver=vfs \ --storage-driver=vfs &
"$@"
fi
if [ "$1" = 'docker' -a "$2" = 'daemon' ]; then ssh-keygen -A
# if we're running Docker, let's pipe through dind
# (and we'll run dind explicitly with "sh" since its shebang is /bin/bash)
set -- sh "$(which dind)" "$@"
fi
exec "$@" exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment