ZettaIO / restic-compose-backup

Automatic restic backup of a docker-compose setup. https://hub.docker.com/r/zettaio/restic-compose-backup
MIT License
29 stars 16 forks source link

Use the standard docker-py env variables for client creation #19

Open einarf opened 4 years ago

einarf commented 4 years ago

https://docker-py.readthedocs.io/en/stable/client.html

We can just instantiate the DockerClient with docker.from_env(). This makes it easy for users to configure docker access with or without TLS.

DOCKER_HOST
DOCKER_TLS_VERIFY
DOCKER_CERT_PATH