goinside is a command line tool that helps you run bash inside docker containers easily.
You can look at
goinside as an alternative for
docker exec -it container_name bash with some tweaks.
People have problems with going inside docker containers.
How to get bash or ssh into a running container in background mode?
How to enter in a Docker container already running with a new TTY
How do I run a command on an already existing Docker container?
Install package globally on your system:
npm i goinside -g
Or if you prefer yarn:
yarn global install goinside
Let's say you have a docker container that has
bash installed in it.
docker run -d --name test_container ubuntu tail -F nothing
Now you can open up a terminal inside your container(with proper size):
goinside test_container [bash/sh]
Also this package comes with a modified version of
docker ps command named
dlist, you can use this one simply by typing: