Skip to content

Instantly share code, notes, and snippets.

@tamuhey
Created May 18, 2020 10:41
Show Gist options
  • Save tamuhey/c6e2c0347c73ad388fd5ad0ca3e62b6f to your computer and use it in GitHub Desktop.
Save tamuhey/c6e2c0347c73ad388fd5ad0ca3e62b6f to your computer and use it in GitHub Desktop.
docker_list_context.sh
docker build -t test . <<EOF
FROM busybox
RUN mkdir /tmp/build/
# Add context to /tmp/build/
COPY . /tmp/build/
EOF
docker run --rm -it test find /tmp/build
@tamuhey
Copy link
Author

tamuhey commented May 18, 2020

curl https://gist.githubusercontent.com/tamuhey/c6e2c0347c73ad388fd5ad0ca3e62b6f/raw/e754301eba0c29d6d477b7a2b6dafa444021c67d/docker_show_context.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment