is it possible to use ssh in pod?

前端 未结 1 1063
生来不讨喜
生来不讨喜 2021-01-25 13:32

I made hadoop image based on centos using dockerfile. There are 4 nodes. I want to configure cluster using ssh-copy-id. But an error has occurred.

ERROR: ssh: c         


        
相关标签:
1条回答
  • 2021-01-25 14:21

    ssh follows a client-server architecture. So, the openssh-server has to be installed in the container. Now ssh-copy-id and other commands should run if the ip address is routable.

    0 讨论(0)
提交回复
热议问题