Skip to main content

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


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)

Uploaded Source

Built Distribution

pydocker_util-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for pydocker_util-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c22abf87c4005eba085cbc659cee160a315f5c263fd286d68a044d8347f16a42
MD5 fbab59de7974dbe207fb452387b26e5b
BLAKE2b-256 36a13b445af877b54e02e3672daf197a34b38bc8ce3ed42f2fb71a6383638db0

See more details on using hashes here.

File details

Details for the file pydocker_util-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydocker_util-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 850dd0b74af068dc90c9b184a9d470d9720e369abcc366089b821ab6aec02678
MD5 6de61bdf05652655113b6f121c7db874
BLAKE2b-256 6a33c60ced39c8084e0d2f342f73319694734394951d0eae196ae50186b40f37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page