How to transfer files between local machine and minikube?

后端 未结 5 1155
臣服心动
臣服心动 2021-01-30 11:14

I am using OS Ubuntu 16.0.4 and i installed minikube on it. I need to copy some files to minikube, so how can i do that? I tried next command but it asked me on password and i d

5条回答
  •  既然无缘
    2021-01-30 12:07

    On the host machine you can use the ssh-key and ip subcommands of the minikube command:

    scp -i $(minikube ssh-key)  docker@$(minikube ip):
    

    So the command from the question becomes:

    scp -i $(minikube ssh-key) /media/myuser/sourceFolder docker@$(minikube ip):/home/docker/destiationFolder
    

提交回复
热议问题