Closed typekpb closed 2 years ago
got it working, using the hint present in: https://www.redhat.com/sysadmin/debug-rootless-podman-mounted-volumes
adding flag U
to volume mount.
For the future reference, following resolves issue reported above for podman rootless on MacOS (however leads to different ones, but that would be investigated separately):
version: '3'
services:
openhab:
container_name: openhab
image: "openhab/openhab:3.2.0-alpine"
restart: always
volumes:
- "./openhab/addons:/openhab/addons:U"
- "./openhab/conf:/openhab/conf:U"
- "./openhab/userdata:/openhab/userdata:U"
environment:
OPENHAB_HTTP_PORT: "8080"
OPENHAB_HTTPS_PORT: "8443"
CRYPTO_POLICY: "unlimited"
ports:
- "8080:8080"
running on MacOS, having userid=501 and groupid=20
with: docker-compose.yml:
results in: