Exclude /run/host-services When Using Docker Desktop on MacOS#1293
Exclude /run/host-services When Using Docker Desktop on MacOS#1293timway wants to merge 1 commit intoansible:develfrom
/run/host-services When Using Docker Desktop on MacOS#1293Conversation
|
Just checking in on this issue. What should I be doing to advance this? I wrote a very targeted fix for the issue but I noticed it may be better to look holistically at the project. Would it be better to design an interface various process isolation methods could implement? That would make it easier to implement the various scenarios that runner is getting leveraged in these days. I'd be willing to take a shot at the initial design and see where it goes if necessary. I'd need to know where maintainers see things before spending substantial time on something like that though. |
|
@timway - would be a +1 if this could be an option for |
* Docker Desktop takes care of setting up ssh-agent forwarding from MacOS but does in a way that is only allowed to `root` inside the container * As documented at the time of commit at https://docs.docker.com/desktop/networking/#ssh-agent-forwarding * Move the `None` check ahead of the path checking with a specific error message to clearly differentiate that error from path checking errors
f042704 to
3b3c1bf
Compare
|
|
+1 On this; this is absolutely needed for Docker if you want any kind of SSH forwarding from the host machine. |



rootinside the containerNonecheck ahead of the path checking with a specific error message to clearly differentiate that error from path checking errorsPartially addresses #1292 by exempting paths starting with
/run/host-servicesincontainerizedmode ondockerfrom the source path check.I'd like to hear feedback on making
--user rootthe default fordockerpossibly when a volume mount has a path sourced in/run/host-servicesondockeror in all cases ondocker.A similar fix like this one will be required in order to resolve ansible/ansible-navigator#1593 after/if this is merged into
ansible-runneras well.