Running into an issue with the SSH plugin on macOS + Colima
SSH plugin fails with Colima + virtiofs
crib's SSH plugin tries to bind-mount the SSH agent socket into the container. On macOS with Colima using virtiofs mounts, Docker can't stat the socket file:
docker: Error response from daemon: invalid mount config for type "bind":
stat /Users/my-user-name/.ssh/agent/s.NDVk7hpiWV.agent.RlrkPEa4Fp: operation not supported
The socket exists and is valid on the host:
$ ls -la $SSH_AUTH_SOCK
srw-rw-rw- 1 my-user-name wheel 0 Apr 2 15:00 /Users/my-user-name/.ssh/agent/...
I suspect this is a limitation of how Colima shares files between the host and the VM, but I'm not sure about the root cause.
This prevents crib up from starting at all - there's no way to skip or disable the SSH plugin.
// EDIT: actually, there's a workaround - unsetting SSH_AUTH_SOCK tricks crib into skipping the SSH plugin.
Expected behavior:
Either support Colima setups or provide a way to disable the SSH plugin (e.g. crib up --disable-plugin ssh or a config entry) so crib up can still start or let the ssh plugin fail gracefully.
Environment:
- crib 0.7.1
- macOS (arm64)
- Colima 0.9.1 with
vmType: vz, mountType: virtiofs
forwardAgent: true in Colima config
Running into an issue with the SSH plugin on macOS + Colima
SSH plugin fails with Colima + virtiofs
crib's SSH plugin tries to bind-mount the SSH agent socket into the container. On macOS with Colima using
virtiofsmounts, Docker can't stat the socket file:The socket exists and is valid on the host:
I suspect this is a limitation of how Colima shares files between the host and the VM, but I'm not sure about the root cause.
This prevents crib up from starting at all - there's no way to skip or disable the SSH plugin.
// EDIT: actually, there's a workaround - unsetting
SSH_AUTH_SOCKtricks crib into skipping the SSH plugin.Expected behavior:
Either support Colima setups or provide a way to disable the SSH plugin (e.g.
crib up --disable-plugin sshor a config entry) so crib up can still start or let the ssh plugin fail gracefully.Environment:
vmType: vz,mountType: virtiofsforwardAgent: truein Colima config