Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote github access is denied even though the public key is created and saved in my github profile #10

Open
jinxu-ml opened this issue Aug 15, 2019 · 1 comment

Comments

@jinxu-ml
Copy link

jinxu-ml commented Aug 15, 2019

I would like to set up airflow with docker on MacBook Pro with macOS 10.14.x.

I have got zpencerq/docker-airflow:1.10.2 and followed the instructions at https://docs.docker.com/compose/install/#install-compose

Also, I have set up the ssh agent forward with the instructions at https://github.com/uber-common/docker-ssh-agent-forward

When I run:

docker-compose up -d

I got:

Collecting my-data-store from git+ssh://[email protected]/[email protected]#egg=my-data-store

Cloning ssh://[email protected]/my-data-store.git to /my/local/path

Permission denied (publickey).

 fatal: Could not read from remote repository.

I have created ssh public key and added the ssh public key in my git profile. I have also added my private key.

I have tried some answers for this kind of question, but none of them work.

If I run the following command in Mac terminal, it works well.

  git clone -q ssh://[email protected]/my_path/my-data-store.git /tmp/my_folder

Why docker-compose cannot do the same thing to access github ?

Do I miss something ?

@BlinkyStitt
Copy link

BlinkyStitt commented Sep 11, 2019

Can you share your docker-compose file? You’ll need to add some environment variables and volumes (the same ones that are added to the run command by pinata-ssh-mount described in this repo’s readme) to make compose work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants