Last active
July 7, 2020 06:48
-
-
Save stuartleeks/4ac845e701f4312f71d1a0ad7d95836b to your computer and use it in GitHub Desktop.
devcontainer
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
# 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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use https://github.com/stuartleeks/devcontainer-cli/ instead :-)