mount files present in a directory in docker image with the directory in the host
问题 I have a docker image in which there are few configuration files present in the directory /opt/app/config now i wanted to mount this directory to a host directory so that config files can be accessed from host. my docker compose is a follows web: image: web:v1 container_name: web volumes: - ./config:/opt/app/config command: ["tail","-f","/dev/null"] ports: - 5000:5000 if i run the individual web image using docker run -it web:v1 bash and do ls /opt/app/config i can see the config files but