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

Accept username and agent for SSH #108

Merged
merged 3 commits into from
Oct 17, 2019
Merged

Accept username and agent for SSH #108

merged 3 commits into from
Oct 17, 2019

Conversation

bwateratmsft
Copy link
Contributor

@bwateratmsft bwateratmsft commented Oct 17, 2019

Resolves #107

  • Allow SSH DOCKER_HOST URLs
  • Accept username in DOCKER_HOST, i.e. ssh://user@host
  • Use SSH_AUTH_SOCK env var to determine auth agent (Docker CLI also requires ssh-agent to be set up)

agent: ssh({'host': self.host, 'port': self.port}),
protocol: 'http'
agent: ssh({'host': self.host, 'port': self.port, 'username': self.username, 'agent': process.env.SSH_AUTH_SOCK}),
protocol: 'http:'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got errors without the : on the end of http, hence added it here.

@apocas
Copy link
Owner

apocas commented Oct 17, 2019

👍

@apocas apocas merged commit f383654 into apocas:master Oct 17, 2019
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

Successfully merging this pull request may close these issues.

User is ignored in an SSH DOCKER_HOST
2 participants