Is it possible to pass mounts to host-container #4364
Replies: 2 comments
-
Today it is not possible to pass custom mount points to host-containers. I am seeing a possible feature request here - but it would need some design and discussion tied to this. |
Beta Was this translation helpful? Give feedback.
-
If you wanted, you could have your default entry point script set up bind mounts to the expected locations for these files prior to executing osquery. However, since the distro inside the container also needs these files (e.g. to show owner and group names in a directory listing), there's potential for some confusing behavior or bugs. One alternative is to have your host container execute the program inside the root filesystem:
(This would work best if osquery was a fully static binary that didn't make assumptions about shared libraries or other files on the host.) |
Beta Was this translation helpful? Give feedback.
-
Use-case:
I am researching the way to use Osquery audit software on the Bottlerocket.
The idea is to run Osquery as a host-container and mount files and folders that should be monitored. For example:
The reason to run it as a host-container is that we want to make sure that audit syb-system works even if server didn't join ECS cluster.
I can see that host-container gets a lot of mounts by default like
/.bottlerocket/rootfs
, etc. But I don't see the way to modify the list of the default mounts.Thanks,
Beta Was this translation helpful? Give feedback.
All reactions