how to ssh docker container

前端 未结 8 1801
抹茶落季
抹茶落季 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:40

    You might need to specify the full path to bash, e.g.:

    docker exec -it cc55da85b915 /bin/bash
    

    or /usr/local/bin/bash, or wherever bash is located in that image.

    Hope this helps!

提交回复
热议问题