how to ssh docker container

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

    For Alpine based image, docker exec -ti cc55da85b915 /bin/sh and docker exec -ti cc55da85b915 ls /etc worked. As suggested by 'Esteban Collado'.

    However for other Linux versions I use, docker exec -ti cc55da85b915 bash

提交回复
热议问题