Commit d85c733 1 parent 919816d commit d85c733 Copy full SHA for d85c733
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,12 @@ check_1_2_1() {
73
73
starttestjson " $id_1_2_1 " " $desc_1_2_1 "
74
74
75
75
totalChecks=$(( totalChecks + 1 ))
76
- local system_partition=$( df / --output=source 2> /dev/null | sed -n 2p)
77
- local docker_partition=$( df " $( docker info -f ' {{ .DockerRootDir }}' ) " --output=source 2> /dev/null | sed -n 2p)
78
- if [ " $system_partition " != " $docker_partition " ] && [ ! -z " $docker_partition " ] ; then
76
+ docker_root_dir=$( docker info -f ' {{ .DockerRootDir }}' )
77
+ if docker info | grep -q userns ; then
78
+ docker_root_dir=$( readlink -f " $docker_root_dir /.." )
79
+ fi
80
+
81
+ if mountpoint -q -- " $docker_root_dir " > /dev/null 2>&1 ; then
79
82
pass " $check_1_2_1 "
80
83
resulttestjson " PASS"
81
84
currentScore=$(( currentScore + 1 ))
You can’t perform that action at this time.
0 commit comments