how to bash into docker container

Shell
docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpinedocker exec -it nginx /bin/bash
Source

Also in Shell: