Mkdocs-material: Deploying with Docker fail, .ssh/config file bad owner.

Created on 9 May 2020  路  6Comments  路  Source: squidfunk/mkdocs-material

__I checked that...__

  • [x] ... the documentation does not mention anything about my problem
  • [x] ... the problem doesn't occur with the default MkDocs template
  • [x] ... the problem is not in any of my customizations (CSS, JS, template)
  • [x] ... there are no open or closed issues that are related to my problem

Description

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

Actual behavior

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.

Expected behavior

Work with the original configuration, i.e. being me the owner of config file.

Steps to reproduce the bug

Docker run comand:

docker run -it -v ~/.ssh:/root/.ssh -v  ~/.gitconfig:/root/.gitconfig -v ${PWD}:/docs squidfunk/mkdocs-material gh-deploy -m "Test"

Package versions

I am using the 5.1.5 version of squidfunk/mkdocs-material image.

System information

I don't think this is relevant, but I put it anyway.

  • OS: Fedora 30

All 6 comments

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?

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 馃槉

Was this page helpful?
0 / 5 - 0 ratings