Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Ryan_Parman
4 years agoDedicated Contributor
[Feature Request] Using 1P SSH from inside a local Docker container
My team and I regularly use Docker for lightweight local environments that are pre-configured with things we need to develop that project. (It helps avoid things like "works on my machine".) If I nee...
Former Member
3 years agoOkey got to the bottom of it - It's my Docker container not using the right open-ssh
Jack_P_1P here is my host file FYI
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
ForwardAgent yes
Steps I did to fix this:
1. install openssh-server
via Dockerfile
FROM python
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential openssh-server
2. Open vscode via this method https://developer.1password.com/docs/ssh/agent/compatibility#ssh-auth-sock
$ export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
$ open -a /Applications/Visual\ Studio\ Code.app