Accessing Underlying Files in Worker Host #8459
Replies: 2 comments 1 reply
-
|
You can bypass all the containerization machinery with houdini. If you go this route, a Linux worker becomes like a macoS or Windows one: a task has total direct access to the host, so be careful. |
Beta Was this translation helpful? Give feedback.
-
|
@marco-m Can you clarify how to directly access the worker's host filesystem when using houdini? I tried and noted a difference in the output of The .. and for houdini: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I fully understand that the philosophy of Concourse is that it is stateless and should not be aware of the host that it is running on top of. However, there is a use case that I have in mind which accessing the underlying host would be very valuable.
The idea has been brought up before in the following issues and it was concluded that other than using
sshfs, that it wasn't really possible:#4241
#857
After poking around, a colleague and I found that the
resolv.conffrom the host is mounted in worker containers. Allowing you to leak information from the host into a worker by adding comments toresolv.conf. This is quite hacky, but does show that the worker isn't totally abstracted away from the host.Output from pipeline:
This is all using the
containerdbackend. My hope is that someone might be able to provide a path to add another bind mount, allowing me to pass specific information from the host into the context of the worker without having to go through the hack of passing throughresolv.conf.Any thoughts?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions