linux - Docker - Mount a docker volume on separate host partition -


my centos system has 2 partitions. main 1 has 20g & other 1 (mounted on /data) has 500g. want mount volume on other partition shown below. successful files of partition not being shown in container.

this docker-compose file:

vvriv:   container_name: vvr   image: duser/vvr   ports:     - "9051:80"   volumes:     - ./application/site:/srv/www/site     - /data/static:/srv/www/vvstatic   environment:     - term=xterm 

on docker container, can see files of ./application/site inside /srv/www/site files /data/static not being shown in /srv/www/vvstatic.

i don't see visible errors. idea why happening? because of different partition?


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -