Skip to content

Instantly share code, notes, and snippets.

@bjesuiter
Last active October 6, 2024 17:40
Show Gist options
  • Save bjesuiter/1ac11cb440fccdc8d901bf9951c27fb3 to your computer and use it in GitHub Desktop.
Save bjesuiter/1ac11cb440fccdc8d901bf9951c27fb3 to your computer and use it in GitHub Desktop.
Docker Tipps
#!/usr/bin/env bash
# docker run \
# --name ${container_name} \
# ${image} \
# ${cmd}
# docker cp ${container_name}:${path_to_copy} ${output_dir}
#!/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