diff --git a/securedrop/bin/dev-shell b/securedrop/bin/dev-shell index 5d83918d7f..03ce0836c7 100755 --- a/securedrop/bin/dev-shell +++ b/securedrop/bin/dev-shell @@ -117,7 +117,7 @@ function docker_run() { if [ -n "${USE_TOR:-}" ]; then # Mount persistent onion services # shellcheck disable=SC2046 - $DOCKER_BIN volume create sd-onion-services $(if [ "$DOCKER_BIN" = "podman" ]; then echo "--ignore"; fi) + $DOCKER_BIN volume inspect sd-onion-services -f " " || $DOCKER_BIN volume create sd-onion-services DOCKER_RUN_ARGUMENTS="${DOCKER_RUN_ARGUMENTS} --volume sd-onion-services:/var/lib/tor/services" fi