Permission denied with (almost) default docker-compose.yml

When starting the JanusGraph container I get an "Operation not permitted" error specifically for the janusgraph-default-data (named) volume (the directory for BerkleyDB persistence). My docker-compose.yml file is as follows:
services:
janusgraph:
image: janusgraph/janusgraph:latest
container_name: janusgraph
restart: always
platform: linux/x86_64
user: "1000:1000"
ports:
- "8182:8182" # Gremlin Server port
volumes:
- ./config:/etc/opt/janusgraph
- "janusgraph-default-data:/var/lib/janusgraph"

volumes:
janusgraph-default-data:1
services:
janusgraph:
image: janusgraph/janusgraph:latest
container_name: janusgraph
restart: always
platform: linux/x86_64
user: "1000:1000"
ports:
- "8182:8182" # Gremlin Server port
volumes:
- ./config:/etc/opt/janusgraph
- "janusgraph-default-data:/var/lib/janusgraph"

volumes:
janusgraph-default-data:1
The specific error log is:
chown: changing ownership of '/var/lib/janusgraph': Operation not permitted
janusgraph | chmod: changing permissions of '/var/lib/janusgraph': Operation not permitted
janusgraph | waiting for storage...
janusgraph | waiting for storage...
janusgraph | waiting for storage...
chown: changing ownership of '/var/lib/janusgraph': Operation not permitted
janusgraph | chmod: changing permissions of '/var/lib/janusgraph': Operation not permitted
janusgraph | waiting for storage...
janusgraph | waiting for storage...
janusgraph | waiting for storage...
As far as I can tell, the above docker-compose is almost completely standard except for the ./config volume so that I can configure the BerkleyDB backend. Has anyone come across this issue and if yes, how do I solve? Thanks in advance.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server