Skip to content

punktDe/docker-mac-ssh-auth-sock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

docker-mac-ssh-auth-sock

This is an improved version of mariusgrigaitis/docker-mac-ssh-auth-sock, which can be installed via Homebrew as a service.

Install

brew install punktde/public/docker-ssh-auth-sock
brew services start punktde/public/docker-ssh-auth-sock

The service will restart on boot.

Uninstall

brew services stop punktde/public/docker-ssh-auth-sock
brew remove punktde/public/docker-ssh-auth-sock

Usage

docker run

docker run -v "${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}" -e "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" --entrypoint /usr/bin/ssh-add alpine/git -l

The output should match the output of ssh-add -l on your host.

docker-compose

version: '3.6'
services:
  myservice:
    image: alpine/git
    volumes:
      - ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}
    environment:
      - SSH_AUTH_SOCK=${SSH_AUTH_SOCK}
    entrypoint: /usr/bin/ssh-add
    command: -l

The output should match the output of ssh-add -l on your host.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages