Eugen Konkov
Eugen Konkov

Reputation: 25282

How to find what mounted volume?

I have next service at docker compose file:

  prometheus:
    depends_on:
     - promscale
    image: prom/prometheus:latest
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml

At portainer I can see that this service mounted at /prometheus: enter image description here

But I can not understand where is definition for this mount and where it is mounted?

I can not find, neither at host or at container, /prometheus folder

Upvotes: 0

Views: 44

Answers (1)

KamilCuk
KamilCuk

Reputation: 142080

The definition is inside Dockerfile https://github.com/prometheus/prometheus/blob/main/Dockerfile#L23 :

VOLUME     [ "/prometheus" ]

Upvotes: 1

Related Questions