Open DavidMStraub opened 4 years ago
Almost there! You need to ssh from the root account as well, since Docker is run from root and not your user. Then you’ll be able to type yes
to allow the remote key and the backup script will work. Let me know if it doesn’t help.
Thanks! Unfortunately that didn't do the trick. I did have to type yes
when rsyncing from the root account, but it didn't change the error ...
Ah, of course it’s the container that hasn’t accepted the host. You could docker exec
into the container and ssh from there, but I’m trying to figure out how I got this to work personally... If I look at /root/.ssh/authorized_keys
in my container I see the host there, but you will not find your backup host there.
I found it now, you need to set the REMOTE_HOSTNAME
environmental variable and then the host will be added on the first run of the container.
Hi,
thanks for this useful Dockerfile. Unfortunately I am having some issues. I use the example from the Readme on a Raspberry Pi:
I get:
But running directly
does work (this is rsync 3.1.3 on Raspbian Buster).
Do you have an idea what could be going wrong? Thanks!