Last active
October 6, 2024 17:40
-
-
Save bjesuiter/1ac11cb440fccdc8d901bf9951c27fb3 to your computer and use it in GitHub Desktop.
Docker Tipps
This file contains 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
#!/usr/bin/env bash | |
# docker run \ | |
# --name ${container_name} \ | |
# ${image} \ | |
# ${cmd} | |
# docker cp ${container_name}:${path_to_copy} ${output_dir} | |
This file contains 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
#!/usr/bin/env bash | |
# Run a shell with current pwd mounted | |
docker run -it --rm -v "$(pwd)":/pwd -w /pwd alpine:latest sh | |
# Run some container | |
docker run -it --rm hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment