docker-check-updates: update to new api

master
neingeist 7 years ago
parent cb270ca720
commit e8426f35e8

@ -2,10 +2,10 @@
"""Check Docker images for security/distro updates. Assumes DNF.""" """Check Docker images for security/distro updates. Assumes DNF."""
from __future__ import division, print_function from __future__ import division, print_function
from docker import Client import docker
import subprocess import subprocess
c = Client(base_url='unix://var/run/docker.sock') c = docker.APIClient(base_url='unix://var/run/docker.sock')
for container in c.containers(): for container in c.containers():
name = container['Names'][0] name = container['Names'][0]
id_ = container['Id'] id_ = container['Id']

Loading…
Cancel
Save