Skip to content

Instantly share code, notes, and snippets.

View surrbsk10's full-sized avatar

surrbsk10

View GitHub Profile
@surrbsk10
surrbsk10 / container_cleaner.py
Last active July 17, 2020 08:34
Python Class to clean exited docker containers and untagged docker images in the native docker env. To Install python docker package : pip install docker
"""
Python Class to clean exited docker containers and untagged docker images in the native env
Actions are performed used by Docker - Python SDK
__author__ = "Suresh Kumar B"
__email__ = "sureshsurya1096@gmail.com"
"""
import docker, docker.errors
@surrbsk10
surrbsk10 / container_cleaner.py
Created July 17, 2020 08:00
Python Class to clean exited docker containers and untagged docker images in the native docker env.
"""
Python Class to clean exited docker containers and untagged docker images in the native env
Actions are performed used by Docker - Python SDK
__author__ = "Suresh Kumar B"
__email__ = "sureshsurya1096@gmail.com"
"""
import docker, docker.errors