Create a bash command for opening a shell to a running Docker container
Fetch container ID from docker ps and run docker-bash 880e6a9d9601 where "880e6a9d9601" is the container ID
Put the function in your .bashrc or .profile file.
| docker-bash() { | |
| sudo docker exec -i -t $1 /bin/bash | |
| } |