-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bbf773
commit 38b0662
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
""" | ||
DOCKERINFO v1.3.1 | ||
DOCKERINFO v1.3.2 | ||
Author: croketillo <[email protected]> <https://github.com/croketillo> | ||
Description: Extract information from docker containers | ||
License: GNU(GPL)-3 | ||
Example usage: | ||
============= | ||
docker_helper = GetDockerContainers() | ||
containers_list = docker_helper.list_containers(all_containers=True) | ||
my_container = docker_helper.get_container_by_name("my_container_name") | ||
""" | ||
import docker | ||
from datetime import datetime | ||
|
@@ -39,12 +46,6 @@ def get_container_by_name(self, container_name): | |
# Return None if the container doesn't exist | ||
return None | ||
|
||
# Example usage: | ||
# docker_helper = GetDockerContainers() | ||
# containers_list = docker_helper.list_containers(all_containers=True) | ||
# my_container = docker_helper.get_container_by_name("my_container_name") | ||
|
||
|
||
class DockerContainerInfo: | ||
""" | ||
A class that provides information and operations related to a Docker container. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters