mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-28 21:18:28 +00:00
switch root to a tmpfs filesystem, so pivot_root works, should make #57 work now
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
38aef85f6a
commit
4dec575407
@ -90,7 +90,8 @@ RUN \
|
|||||||
rc-update add hupper default && \
|
rc-update add hupper default && \
|
||||||
rc-update add hv_fcopy_daemon default && \
|
rc-update add hv_fcopy_daemon default && \
|
||||||
rc-update add hv_kvp_daemon default && \
|
rc-update add hv_kvp_daemon default && \
|
||||||
rc-update add hv_vss_daemon default && \
|
rc-update add hv_vss_daemon default
|
||||||
ln -s /bin/busybox /init
|
|
||||||
|
COPY init /
|
||||||
|
|
||||||
CMD ["/bin/sh"]
|
CMD ["/bin/sh"]
|
||||||
|
7
alpine/init
Executable file
7
alpine/init
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/bin/mount -t tmpfs tmpfs /mnt
|
||||||
|
|
||||||
|
/bin/cp -a / /mnt 2>/dev/null
|
||||||
|
|
||||||
|
exec /sbin/switch_root /mnt /sbin/init
|
@ -30,8 +30,6 @@ start()
|
|||||||
rm -rf /var/tmp/log
|
rm -rf /var/tmp/log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export DOCKER_RAMDISK="true"
|
|
||||||
|
|
||||||
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
||||||
|
|
||||||
pidfile="/run/docker.pid"
|
pidfile="/run/docker.pid"
|
||||||
|
Loading…
Reference in New Issue
Block a user