Execute bash inside a docker container the right way
#!/bin/bash
#connect to a container
echo "Connect to container instance : $1"
docker exec -it $1 /bin/bash -c "export TERM=xterm; exec bash"
Written by Vedanta Barooah
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#