How to transfer files between local machine and minikube?

后端 未结 5 1156
臣服心动
臣服心动 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 11:57

    I handled it by following next steps:

    1- going into ssh of minikube >> minikube ssh

    2- Changing docker password using sudo >> sudo passwd docker and create new password so now i know docker user password

    3- exit from ssh and go back to Ubuntu terminal >> exit

    4- using scp command to copy files into minikube >> scp /local/path/to/file/ docker@minikubeIp:/your/destination/folder/

    For example scp -r /media/myuser/sourceFolder docker@192.168.99.100:/home/docker

    and after that it asked only for minikube docker user password which i know it now after changed it then write password and folders copied successfully into minikube from local machine

提交回复
热议问题