__I checked that...__
Deploying with Docker fails. I bind the .ssh directory with ssh config file.
The log says:
Bad owner or permissions on /root/.ssh/config
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
I have 600 file permission (.ssh/config file) and the owner it's me (not root). I try to change file permission and it doesn't work, but after changing the owner to root it works. For the rest of files I'm still the owner.
Work with the original configuration, i.e. being me the owner of config file.
Docker run comand:
docker run -it -v ~/.ssh:/root/.ssh -v ~/.gitconfig:/root/.gitconfig -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy -m "Test"
I am using the 5.1.5 version of squidfunk/mkdocs-material image.
I don't think this is relevant, but I put it anyway.
This is a general Docker problem and you seem to be quite proficient in Docker. Could I ask you to investigate yourself and share your findings?
Closed accidentally. Could be helpful:
https://nickjanetakis.com/blog/docker-tip-56-volume-mounting-ssh-keys-into-a-docker-container
This is a general Docker problem and you seem to be quite proficient in Docker. Could I ask you to investigate yourself and share your findings?
Fine, I wil investigate about this "issue" :smiley:
Any luck? Can this be closed?
Any luck? Can this be closed?
Hi! Not yet, I麓ve tried different ways but I麓ve run into permission issues. The only way that I could is moving config file or changing the owner.
If you want we can clouse this issue and if I find a solution I will bring it here.
Yes, if you figure it out, I would encourage you to post your solution here 馃槉