Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 269 Bytes

6.Docker-API.md

File metadata and controls

21 lines (12 loc) · 269 Bytes
  • Docker Python API Connect
apt install python-pip

pip install docker.

import docker
client = docker.from_env()
for container in client.containers.list():
  print container.id