Running docker-compose vesrion 3. This is the relevant volumes
block:
volumes:
- /usr/local/lib/node_modules:/usr/local/lib/node_modules
- /Users/me/code/company/rtx/modules/packges:/app/modules/packages
The first mount works totally fine. I can write files locally and they show up as expected in my Docker container at the given path.
local/lib/node_modules on π³ v17.03.1-ce
β touch mom.1334
local/lib/node_modules on π³ v17.03.1-ce
β docker exec -it app bash
root@b3fb73fc0c74:/app# cd /usr/local/lib/node_modules/
root@b3fb73fc0c74:/usr/local/lib/node_modules# ls
@companynamehere @runnable absolutize-links mom.1334 git-pull-all git-run node-sass npm uglify-js
The second volumes
mount doesnβt work at all. I can see it mounted if i do a df -h
in my Docker container but there are no files/folder/anything listed.
root@38cc24cfced2:/app/modules/packages# ls -lah
total 4.0K
drwxr-xr-x 2 root root 68 Jun 1 16:02 .
drwxr-xr-x 3 root root 4.0K Jun 1 18:41 ..
Would REALLY love any help / suggestions.
Docker version info:
Version 17.03.1-ce-mac12 (17661)
Channel: stable
d1db12684b