docker-ssh-agent-forward icon indicating copy to clipboard operation
docker-ssh-agent-forward copied to clipboard

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

Open jinxu-ml opened this issue 4 years ago • 1 comments

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 ?

jinxu-ml avatar Aug 15 '19 17:08 jinxu-ml