Skip to content

Instantly share code, notes, and snippets.

@stuartleeks
Last active July 7, 2020 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartleeks/4ac845e701f4312f71d1a0ad7d95836b to your computer and use it in GitHub Desktop.
Save stuartleeks/4ac845e701f4312f71d1a0ad7d95836b to your computer and use it in GitHub Desktop.
devcontainer
# usage: `devcontainer <partial container name or mount path>`
#function devcontainer(){ docker exec -it $(docker ps -q | xargs docker inspect --format "{{.ID}} {{.Name}} {{range .Mounts}}{{.Source}}|{{end}}" | grep $1 | awk '{print $1}') bash; }
# replaced by https://github.com/stuartleeks/devcontainer-cli/
@stuartleeks
Copy link
Author

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