Skip to main content

Configuration management for Docker containers

Project description

# docker-sync

Helper utility for configuration management tools like Chef and Puppet.

Given a directory of config files (see the example directory), docker-sync will ensure that the running containers are kept in sync with the config files, and will remove containers that no longer have a related config file.

It’s a little bit opinionated: container links aren’t supported (tho they could be in the future); all containers are detached. The image a container is instantiated from is compared to its tag in its appropriate registry, and the pull is only done if the registry tag is different than the local tag (a docker pull is slow even when there are no changes).

In the future I may support [dogestry][dogestry] as an alternative (or companion to) a traditional Docker registry.

## installation

pip install docker-sync

Or from a clone:

pip install .

## example usage

docker-sync ./example

or

./docker_sync/cli.py ./example

## options

You can add –no-pull to skip pulling images; very useful when you’re iterating on your configs.

[dogestry]: https://github.com/blake-education/dogestry

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

docker-sync-1.0.2.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file docker-sync-1.0.2.tar.gz.

File metadata

  • Download URL: docker-sync-1.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for docker-sync-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d54260ea1ff44adc520133d8bdc97adbb1b055a21118d985e3d946a674a8626e
MD5 40f7eb55e1d7f0ad9d7306a8d4de65f2
BLAKE2b-256 c97231a5eb618949c81c915c41d627e26e4176ee8191131fb1b89b71d48ac58e

See more details on using hashes here.

Supported by

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