Fix volume to support not binding volumes to host

pull/18777/head
Jirayut 'Dear' Nimsaeng 9 years ago committed by Matt Clay
parent 1aa1b617f5
commit d373e0a7c4

@ -831,7 +831,7 @@ class TaskParameters(DockerBaseClass):
host = os.path.abspath(host)
new_vols.append("%s:%s:rw" % (host, container))
else:
new_vols.append("%s:%s:rw" % (os.path.abspath(vol), vol))
new_vols.append(vol)
return new_vols
def _get_mounts(self):
@ -940,11 +940,6 @@ class TaskParameters(DockerBaseClass):
bind=container,
mode=mode
)
else:
self.volume_binds[vol] = dict(
bind=vol,
mode='rw'
)
def _parse_exposed_ports(self):

Loading…
Cancel
Save