I'm developing an Angular app in a docker container set up with the extension.
Is there a way to use my local id_rsa to fetch and push code to my gitlab repository? (it has been cloned via SSH on my host machine)
Asked
Active
Viewed 1,422 times
2

Matteo Veraldi
- 45
- 2
- 10
1 Answers
2
If you want to push directly from the remote container, you would to have access to your SSH key from within said container.
See for example "Using SSH keys inside docker container" which does mount your local SSH folder
docker run --rm \
-v ~/.ssh:/root/.ssh \
...

VonC
- 1,262,500
- 529
- 4,410
- 5,250