Skip to content

Instantly share code, notes, and snippets.

View Soonogo's full-sized avatar
🎯
Focusing

Soonogo

🎯
Focusing
View GitHub Profile
# 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 {} \;