|
|
@ -80,8 +80,10 @@ class Connection(ConnectionBase):
|
|
|
|
docker_version = self._get_docker_version()
|
|
|
|
docker_version = self._get_docker_version()
|
|
|
|
if LooseVersion(docker_version) < LooseVersion('1.3'):
|
|
|
|
if LooseVersion(docker_version) < LooseVersion('1.3'):
|
|
|
|
raise AnsibleError('docker connection type requires docker 1.3 or higher')
|
|
|
|
raise AnsibleError('docker connection type requires docker 1.3 or higher')
|
|
|
|
if LooseVersion(docker_version) >= LooseVersion('1.8.0'):
|
|
|
|
# Docker cp in 1.8.0 sets the owner and group to root rather than the
|
|
|
|
self.can_copy_bothways = True
|
|
|
|
# user that the docker container is set to use by default.
|
|
|
|
|
|
|
|
#if LooseVersion(docker_version) >= LooseVersion('1.8.0'):
|
|
|
|
|
|
|
|
# self.can_copy_bothways = True
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def _sanitize_version(version):
|
|
|
|
def _sanitize_version(version):
|
|
|
|