Thanos Store : strange permissions in created directory #8851
Replies: 2 comments
|
The
Once the data dir is owned by 1001, |
|
The mode is not the problem. Store creates that directory in thanos-store-init:
image: ${THANOS_CONTAINER_IMAGE}
user: "0"
entrypoint: ["/bin/sh", "-c", "chown -R 1001:1001 /var/thanos/store"]
volumes:
- thanos-store-data:/var/thanos/store
restart: "no"Does that match what you see on the volume? |
Uh oh!
There was an error while loading. Please reload this page.
Docker image:tag:
quay.io/thanos/thanos:v0.41.0Object Storage Provider: Containerized instance of MinIO (image:
mini/minio- slightly old, but functional)What happened:
I'm trying to run the Thanos Store gateway as part of a Docker Compose ensemble.
The relevant
compose.yamlservice entries:Relevant compose.yaml volume entries:
After running
docker compose upI get the following messages from the Thanos Store gateway container:As a check, I ran
chmod -R 777 /path/to/thanos-store-data/volume(where the path was the directory indicated bydocker volume inspect) after callingdocker compose down.Running the ensemble again, the
thanos-storecontainer apparently succeeded with creating the/var/thanos/store/meta-syncerdirectory. The output was now:I looked into the local directory containing the
thanos-store-datavolume while the containers were running to examine themeta-syncerdirectory:Hmmm. Who is the
pubarch-borr-rouser? That's not the userthanos-storeis running as in the container:Why is the
meta-syncerdirectory created by the userpubarch-borr-ro? Who is that user? A quick Google turned up nothing useful, and nor did I find anything useful by searching the Thanos repo ...What you expected to happen: I'd expect:
meta-syncerdirectory in the/var/thanos/storedirectory; that directory is actually mounted in from a Docker volume defined incompose.yaml. The same volume creation/mapping approach does not break Thanos commands in other containers run from the same source image (for example, Sidecar instances).meta-suncerdirectory under e.g. thethanosuser and not the mysteriouspub arch-borr-rouser.How to reproduce it (as minimally and precisely as possible):
Contents of
.envfile :compose.yaml:Then
docker compose upFull logs to relevant components:
See log messages, previous.
Anything else we need to know:
Red Hat Enterprise Linux 9.7, Docker version 29.5.3, build d1c06ef
All reactions