Li Laish
0
Q:

docker access container

docker exec -it <mycontainer> bash
docker exec -it <mycontainer> sh ##for alpine
16
docker exec -it [container-id] bash
9
docker exec -it [containerid/name] [shell]

#Example
docker exec -it fa80b69 bash
#if its an apline container use "sh" instead of "bash"
10
docker exec -it nginx /bin/bash
8

New to Communities?

Join the community