docker助手
Project description
pydocker_util
- docker_util.py
检测/控制docker,使用示例:
# 当前运行的服务
remote_host = "tcp://192.168.1.1:2375"
test = DockerController(remote_host)
print(f"总共有这些服务正在运行:{test.list_running_object_containers()}")
# 暂停容器
test.stop_container('postgres')
# 删除容器
test.remove_container('postgres')
# 获取单个容器
test.inspect_container('postgres')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydocker_util-1.0.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydocker_util-1.0.0.tar.gz.
File metadata
- Download URL: pydocker_util-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22abf87c4005eba085cbc659cee160a315f5c263fd286d68a044d8347f16a42
|
|
| MD5 |
fbab59de7974dbe207fb452387b26e5b
|
|
| BLAKE2b-256 |
36a13b445af877b54e02e3672daf197a34b38bc8ce3ed42f2fb71a6383638db0
|
File details
Details for the file pydocker_util-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pydocker_util-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
850dd0b74af068dc90c9b184a9d470d9720e369abcc366089b821ab6aec02678
|
|
| MD5 |
6de61bdf05652655113b6f121c7db874
|
|
| BLAKE2b-256 |
6a33c60ced39c8084e0d2f342f73319694734394951d0eae196ae50186b40f37
|