how to ssh docker container

前端 未结 8 1617
抹茶落季
抹茶落季 2021-02-02 06:34

I am running the container hypriot/rpi-busybox-httpd

I am trying to ssh to docker container: but it is giving error :

pi@raspberrypi:~ $         


        
相关标签:
8条回答
  • 2021-02-02 06:59

    Try Below Command:

    docker exec -it cc55da85b915 /bin/busybox sh
    

    To list all the available commands use:

    docker exec -it cc55da85b915 /bin/busybox --list
    
    0 讨论(0)
  • 2021-02-02 07:03

    if you are still looking for an answer. This worked for me on windows.

    winpty docker exec -it <containerid> sh
    
    0 讨论(0)
提交回复
热议问题