Open jemershaw opened 1 year ago
This is not going to work; the socket needs to be forwarded from the VM to the host; you can't just create it in a mounted directory. Here is an example from the docker-rootful
template, that does this: https://github.com/lima-vm/lima/blob/a26c6b20d63b714f3253c1685b977d3ffe7f492c/examples/docker-rootful.yaml#L75-L77
@jandubois even if the socket is generated from the vm and only used from the vm?
I know this works with docker desktop on mac because when I switched over to use lima this stopped functioning.
@jemershaw I would think so, but maybe depends on the mount type. Why would you want to create the socket inside the shared directory if you don't want to connect to it from the host?
Maybe try with 9p
(or virtisfs
if you are using vz
emulation) and see if that works?
I pass in docker run -it -rm -v $HOME:$HOME ...
and use ssh and other things that use sockets in the home directory. The first thing I tried was the different mount types 9p
but that didn't work. I'll try virtiofs
next. Thanks for the quick reply.
Description
I am not sure if this is a limitation on the macOS side or something with qemu but when I try to create a socket in the vm it fails to even create the socket. I will continue to look into this issue but I wasn't sure if anyone else ran into this issue before.
To reproduce the issue: