Home > Mobile >  How to find what mounted volume?
How to find what mounted volume?

Time:10-29

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

CodePudding user response:

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

VOLUME     [ "/prometheus" ]
  • Related