Created
June 6, 2017 01:53
-
-
Save daxeh/4869b0cc6f4481734709d98c8ee5f093 to your computer and use it in GitHub Desktop.
Docker: fish command bash_profile to running container
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
function docker-sh | |
if count $argv > /dev/null | |
command docker exec -ti $argv bash | |
else | |
echo "Usage: docker-sh CONTAINER_ID" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment