Create a Post
Showing results for 
Search instead for 
Did you mean: 
Employee Alumnus
Employee Alumnus

Docker Container Service Objects

This script pulls all the running containers for a given Docker server and builds a service group that contains all the public ports. Each time the script runs it will check for container services that are no longer running and remove them from the services group. This script requires that the Docker Server API is enabled. I followed THIS example to enable the Docker API on port 2375.

I will be working to add support for multiple Docker Servers in a future revision.

     Running Containers inside Docker Server

     Example rule using the created "DockerServer" object and "DockerContainerServices" group object

      Service Group Objects that gets updated each time the script runs



2 Replies


Have you tried this with Kubernetes?  Would it be very similar? I'm not familiar with the API supports for either system.

0 Kudos
Employee Alumnus
Employee Alumnus

I have not tried with Kubernetes yet. I am working on detecting service containers across multiple docker nodes right now. 


Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events