docker run --rm \
-v "$VOLUME_FROM":/from:ro \
-v "$VOLUME_TO":/to \
-u root alpine \
sh -c 'rm -rf /to 2>/dev/null; cd /from; cp -av . /to'
Last active
March 16, 2022 12:14
-
-
Save chazer/fa0934ded20b0881a9eea1e195cc5405 to your computer and use it in GitHub Desktop.
Docker cheats
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment