Skip to content

Instantly share code, notes, and snippets.

@daxeh
Created June 6, 2017 01:53
Show Gist options
  • Save daxeh/4869b0cc6f4481734709d98c8ee5f093 to your computer and use it in GitHub Desktop.
Save daxeh/4869b0cc6f4481734709d98c8ee5f093 to your computer and use it in GitHub Desktop.
Docker: fish command bash_profile to running container
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