Docker Community Forums

Share and learn in the Docker community.

Docker exec: how many ways does exist to access at contaniner?

(Redsandev) #1

Hi guys, so when I use linuxconfig/joomla, I use
docker exec -it [container_name] bash
so, “bash” is only way to enter “inside” the container?

Let me know!

(Ranjandas) #2


If getting a shell environment to interact with the container is what you mean by “entering” inside the container then you can use any shell which is inside the container to interact.

Some docker images wont come with bash installed, in such cases you can use /bin/sh or any other shell that is packaged inside the docker image.