This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.docker.com/blog/back-up-and-share-docker-volumes-with-this-extension/ | |
# run in host | |
mkdir repos | |
mkdir config | |
docker run -it -v repos:/repos -v config:/config -v "$(pwd)/repos":/outside_repos -v "$(pwd)/config":/outside_config busybox sh | |
# run in container | |
cd /repos | |
find . -name node_modules -type d -exec rm -rf {} \; | |
find . -name dist -type d -exec rm -rf {} \; |