add bash envoirement to dockersh

This commit is contained in:
2016-04-14 23:19:37 +02:00
parent cd4d19282d
commit 5fd2b82ef3
3 changed files with 35 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
#Docker: bash into running Docker container
dockersh() {
docker exec -it $1 bash
docker cp ~/.dotfiles/docker.bashrc $1:/.docker.bashrc
docker cp ~/.dotfiles/aliases $1:/.docker.aliases
docker cp ~/.dotfiles/functions $1:/.docker.functions
docker exec -it $1 bash --rcfile /.docker.bashrc
}
#Docker: bash into running Docker container