#!/usr/bin/env bash # Rootless Docker maps container root to the owner of a host bind mount. A # non-root container UID instead maps to a subordinate host UID and cannot # write the owner's artifact directory. In rootful Docker, match the host UID. e2e_playwright_user() { local security_options=$1 local host_uid=$2 local host_gid=$3 if [[ "$security_options" == *'"name=rootless"'* ]]; then printf '0:0\n' return fi printf '%s:%s\n' "$host_uid" "$host_gid" }