Hi Victor,
There are a number of items to consider here. First is the Linux kernel used in the container, the second is whether the version of Cassandra is supported by the agent, and third is whether there is a valid network path between the agent inside the container, and the Gateway it is communicating with.
As long as all three of these are satisfied, there is no reason not to run the agent inside a container.
It is probably worth running the which_ragent_package script referenced at
https://docs.imperva.com/bundle/v13.5-agent-release-notes/page/59040.htm to give you a better idea of whether it is likely to work as expected.
------------------------------
Stefan Pynappels
Escalation Engineer
Imperva
------------------------------