Skip to content

Commit

Permalink
each container in run_change_password_test mounts its own volume
Browse files Browse the repository at this point in the history
selinux does not allow two containers accesing one mounting directory if
mounted with Z option
  • Loading branch information
zmiklank committed Dec 4, 2023
1 parent 261c358 commit 207981e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/run_test
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,11 @@ $volume_options

echo " Changing passwords"

# create separate mounting directory for second container, as selinux does
# not allow two containers accesing one mounting directory if mounted with
# Z option
create_volume_dir || ret=1

DOCKER_ARGS="
-e POSTGRESQL_DATABASE=${database}
-e POSTGRESQL_USER=${user}
Expand Down

0 comments on commit 207981e

Please sign in to comment.