- Get the container's name (this is different from
tag
orid
)
docker ps
- Run the command
docker exec -it NAME_OF_CONTAINER sh
- ???
- Profit
Bonus: To get the content of a file in shell, use cat NAME_OF_YOUR_FILE
.
tag
or id
)docker ps
docker exec -it NAME_OF_CONTAINER sh
Bonus: To get the content of a file in shell, use cat NAME_OF_YOUR_FILE
.