We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a178569 commit d1ed739Copy full SHA for d1ed739
tests/containers/volumes.pm
@@ -36,6 +36,12 @@ sub run {
36
# Create Dockerfile with VOLUME defined
37
assert_script_run("echo -e 'FROM registry.opensuse.org/opensuse/busybox:latest\\nVOLUME /$test_dir' > $test_dir/Dockerfile");
38
39
+ if ($runtime eq "docker") {
40
+ my $selinux_enabled = script_run("test -d /sys/fs/selinux") == 0;
41
+ # Apply fix suggested in docker-run(1)
42
+ assert_script_run("chcon -Rt svirt_sandbox_file_t test_dir") if $selinux_enabled;
43
+ }
44
+
45
# Build image
46
assert_script_run("$runtime build -t $test_image -f $test_dir/Dockerfile $test_dir/");
47
0 commit comments