Contenedor de acceso Docker
docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpine
Troubled Teira
docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpine
docker exec -it nginx /bin/bash
docker exec -it <container-id> /bin/bash
sudo docker exec -it <container name> <command>
result=${PWD##*/}
name=${1:-$result}
bash=${2:-bash}
docker exec -i -t $name /bin/$bash