- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Docker Container Service Objects
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Enjoy
- Labels:
-
Access Policy
-
General
-
Object Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Joe,
Have you tried this with Kubernetes? Would it be very similar? I'm not familiar with the API supports for either system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have not tried with Kubernetes yet. I am working on detecting service containers across multiple docker nodes right now.
