hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

Can I mount docker.sock to a pod?

Open xuchenhao001 opened this issue 7 years ago • 2 comments

I want to call docker engine from my hyper pod. However, it seems that I can mount host's /var/run/docker.sock to my pod but I cannot connect to docker endpoint through that.

xuchenhao001 avatar Feb 02 '18 08:02 xuchenhao001

no, you can't map a socket as volume.

gnawux avatar Feb 02 '18 08:02 gnawux

Ok, then what should I do if I want to start another hyper/docker container in a hyper pod? When I use docker, I simply mount /var/run/docker.sock to my container and that works.

xuchenhao001 avatar Feb 02 '18 09:02 xuchenhao001