Protect what matters – even after you're gone. Make a plan for your digital legacy today.
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
4 years agoWe had been using a setup similar to what is described here.
Effectively we've been doing the following:
docker-compose.yml:
```
version: '3'
services:
app:
image: (most images should work, but I last tested with 'ruby:3.1')
environment:
SSH_AUTH_SOCK: /ssh-agent
volumes:
- $SSH_AUTH_SOCK:/ssh-agent
```
then executing docker compose run --rm app /bin/bash and performing SSH activities from there.
Unfortunately, with the 1Password agent, we receive the following error message:
Error response from daemon: error while creating mount source path '/host_mnt/Users/seansith/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock': mkdir /host_mnt/Users/seansith/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock: operation not supported
This works just fine with the macOS default SSH agent.
Setup:
- macOS 12.3
- Docker Desktop for Mac 4.6.1
- 1Password 8 (80700028, on BETA channel)