CloudBrewery / docrane

Docker container manager that relies on etcd to provide relevant configuration details. It watches for changes in configuration and automatically stops, removes, recreates, and starts your Docker containers.
MIT License
8 stars 2 forks source link

Deprecated use of docker.utils.create_host_config() #23

Closed thurloat closed 8 years ago

thurloat commented 8 years ago

Looks like it's complaining about the usage here: https://github.com/CloudBrewery/docrane/blob/master/docrane/util.py#L168, not sure if the signature is the same for both methods, but docker likes to deprecate things quickly.

log dump

2016-02-18 14:19:08,493 - docrane - INFO - Creating with params: 
{'config_ports': {}, 
 'links': None, 
 'image': 'localhost:5050/openstack/cinder-volume:X', 
 'tag': 'X', 
 'create_ports': [], 
 'privileged': True, 
 'environment': None, 
 'volume_bindings': {
   '/x': {'bind': '/x', 'ro': False}, 
   '/y': {'bind': '/y', 'ro': False}}, 
 'udp_ports': None, 
 'volumes': ['/y'], 
 'volumes_from': None, 
 'command': None, 
 'ports': None
 }

/usr/local/lib/python2.7/dist-packages/docker/utils/utils.py:485: UserWarning: docker.utils.create_host_config() is deprecated. Please use Client.create_host_config() instead.
  'docker.utils.create_host_config() is deprecated. Please use '