Cách truy cập vào docker shell

Table of Contents

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

image

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

Leave a Reply

Your email address will not be published. Required fields are marked *