简体   繁体   中英

How to access docker container's shell from a remote machine

A docker container is running in a headless Ubuntu machine. We are looking to access the shell of the docker from a remote machine connected to the LAN of the host Ubuntu machine. SSH is not an option since the docker image that we want to run does not support SSH.

I can access the docker shell with docker exec -it /bin/sh . How can I do similar shell access from a remote host?

Please help. Thanks in advance

To connect to the remote docker engine you should follow instruction .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM