Skip to content

Instantly share code, notes, and snippets.

@florianpasteur
Last active September 10, 2020 08:39
Show Gist options
  • Save florianpasteur/f561adef0e452e081b8eb7737abbc5a8 to your computer and use it in GitHub Desktop.
Save florianpasteur/f561adef0e452e081b8eb7737abbc5a8 to your computer and use it in GitHub Desktop.
docker tools
dexec() { docker exec -ti "$1" bash; }
dfind () { docker ps | grep "$1" | cut -d " " -f1; }
dafind () { docker ps -a | grep "$1" | cut -d " " -f1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment