-
Notifications
You must be signed in to change notification settings - Fork 2k
docker-machine scp Permission denied #2722
Comments
I had to regenerate the certs (because of #1954 on Ubuntu as well) - might this cause the problem? After re-creating the VM the issue is gone. |
Regeneration of certs doesn't seem to cause it. Created another directory and tried to scp into it and it failed again. |
Hi @AlexZeitler, can you tell us which version of docker-machine you are using and which OS you are on? Also if you are not using 0.5.5 of docker-machine, can you please try it? |
This problem is incredibly limiting. I can't put a file on my docker machine! |
@rjurney You might want to try rsync as I described here: |
In my case, this had to do with filesystem permissions on my boot2docker instance. I worked around it like so:
|
Is there a more elegant solution to this than the above? It works but seems counter to what you'd want to do. |
wow, this is hacky... |
The correct syntax for copying files to a machine is the following: So for example, it would be: Don't forget the ~ to indicate that you are copying to your home folder. If you simply put /dest, it will not work because the user (in the above example ubuntu does not have permissions outside ~/. |
the default password to copy is tcuser |
I created a folder on a Docker machine (
default
) like this:Then I tried to copy local files from the current directory into it:
This results in:
The text was updated successfully, but these errors were encountered: