Skip to content

Instantly share code, notes, and snippets.

@boxcee
Created October 15, 2019 15:03
Show Gist options
  • Save boxcee/a39284ed926466ad18a77ad33c37bff6 to your computer and use it in GitHub Desktop.
Save boxcee/a39284ed926466ad18a77ad33c37bff6 to your computer and use it in GitHub Desktop.
run tar from ubuntu docker
#!/usr/bin/env bash
CWD=$(pwd)
docker run --rm -it -v ${CWD}:/${CWD} ubuntu:18.04 /bin/bash -c "cd ${CWD} && tar ${1} ${2} ${@:3} && chmod 006 ${2}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment