Container image: Support for other runtimes than Docker
dadux opened this issue · comments
Hi all,
I'd love to migrate our Splunk cluster to Kubernetes, and was playing with the splunk-operator.
When the container starts, it fails with the following error :
ERROR! Specified hosts and/or --limit does not match any hosts
I believe this is due to a missing .dockerenv file :
splunk-ansible/inventory/environ.py
Line 93 in 13ce087
which treats container differently with localhost.
The .dockerenv
is mounted for each containers by the docker daemon only, but in our case we are running containerd
and it does not mount it. I believe users running CRI-O
in their clusters will run into the same issue.
How can we not rely on this file ? Adding an environment variable ?
👍 let me take a look
I kicked off another build for the edge
tag, could you try that and see if it works? The image is splunk/splunk:edge
Confirmed ! latest splunk/splunk:edge
fixes the problem.
Thanks for a very speedy resolution !