mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-10 01:20:53 +00:00
kubernetes: Adjust for /var/run->/run symlink
PR #2314 turned /var into a tmpfs (possibly overmounted by a persistent disk) and made /var/run into a symlink to /run. Adjust various containers and bind mount settings to allow for this change. In particular ensuring that everything can find the correct shared /var/run/docker.sock, which due to the symlink is now actually at /run. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -12,6 +12,8 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
# Remove apk residuals. We have a read-only rootfs, so apk is of no use.
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
RUN rmdir /out/var/run && ln -nfs /run /out/var/run
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /
|
||||
COPY --from=build /out /
|
||||
|
||||
Reference in New Issue
Block a user