Skip to content

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

@jinxu-ml

Description

@jinxu-ml

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://git@github.com/my-data-store.git@v.xx.xx.x#egg=my-data-store

Cloning ssh://git@github.com/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://git@github.com/my_path/my-data-store.git /tmp/my_folder

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

Do I miss something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions