Skip to content

Instantly share code, notes, and snippets.

@zhaopengme
Created May 20, 2015 01:55
Show Gist options
  • Save zhaopengme/635301ac505d196c63bd to your computer and use it in GitHub Desktop.
Save zhaopengme/635301ac505d196c63bd to your computer and use it in GitHub Desktop.
enter docker container
#!/bin/bash
execit(){
echo "docker exec -it $1 bash"
docker exec -it $1 bash
}
execit [containerid]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment