mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-04 00:18:53 +00:00
Fix tests that fail with true read only
Mounting a directory inside a read only container requires that to be created in advance, but `runc` worked around that if the rootfs was not originally read only. You cannot even bind mount a file that does not exist into a read only container. The containerd test is given a disk, as running on an overlay does not work; however it is also disabled as one of the parts of the test is failing, needs investigation. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -7,6 +7,8 @@ ENV DOCKER_CHECK_CONFIG_COMMIT=72cda6a6c2f25854bea2d69168082684f2c9feca
|
||||
ADD https://raw.githubusercontent.com/docker/docker/${DOCKER_CHECK_CONFIG_COMMIT}/contrib/check-config.sh /out/check-config.sh
|
||||
ADD . ./out
|
||||
|
||||
RUN mkdir -p /out/lib/modules
|
||||
|
||||
FROM scratch
|
||||
COPY --from=mirror /out /
|
||||
ENTRYPOINT ["/bin/sh", "/check.sh"]
|
||||
|
Reference in New Issue
Block a user