From b75bb4665e1c4db2bb3b931af04c099deec0f666 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 7 May 2021 15:17:33 -0400 Subject: Create the /etc/mtab file if does not exists We should create the /etc/mtab->/proc/mountinfo link so that mount command will work within the container. Docker does this by default. Fixes: https://github.com/containers/podman/issues/10263 Signed-off-by: Daniel J Walsh --- test/system/030-run.bats | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/system/030-run.bats') diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 9a136ff13..e12c32ef5 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -690,4 +690,18 @@ json-file | f run_podman rm $cid } +@test "podman run no /etc/mtab " { + tmpdir=$PODMAN_TMPDIR/build-test + mkdir -p $tmpdir + + cat >$tmpdir/Dockerfile <