Cách truy cập vào docker shell
Table of Content
Cách truy cập vào docker shell
Truy cập vào docker shell
To bash into a running container, type this:
docker exec -t -i container_name /bin/bash
or
docker exec -ti container_name /bin/bash
or
docker exec -ti container_name sh
Cách gọi chạy lệnh trong docker
Ví dụ gọi python trong docker
docker exec -it tyoutube python
https://stackoverflow.com/questions/30172605/how-do-i-get-into-a-docker-containers-shell