how to ssh docker container

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

    The image you're using seems that it doesn't have the binary /bin/bash installed but it should have /bin/sh

    Try:

    docker exec -it cc55da85b915 sh
    

提交回复
热议问题