Skip to content

Instantly share code, notes, and snippets.

@countless-integers
Created June 9, 2016 12:05
Show Gist options
  • Save countless-integers/8884ef306e400726714546967615c111 to your computer and use it in GitHub Desktop.
Save countless-integers/8884ef306e400726714546967615c111 to your computer and use it in GitHub Desktop.
run command inside a docker container assuming your container is named the same as the current folder (very specific, I know :))
#!/bin/bash
docker exec -it $(basename `pwd`) $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment