Skip to content
Snippets Groups Projects
Commit d1bd23d76b38 authored by szeka.wong's avatar szeka.wong
Browse files

Ensure compatibility with older docker version.

parent 5322173a811d
No related branches found
No related tags found
No related merge requests found
......@@ -293,5 +293,5 @@
logging.debug('Using data volume %s', data_volume_name)
volume = getVolume(docker_client, data_volume_name)
# make sure the permission in the volume are correct
mount_opts = 'source={},target=/mnt/data'.format(data_volume_name)
mount_opts = '{}:/mnt/data'.format(data_volume_name)
# TODO replace by something cleaner if possible
......@@ -297,5 +297,5 @@
# TODO replace by something cleaner if possible
call(['docker', 'run', '--rm', '--mount', mount_opts, 'busybox', 'chmod', '777', '/mnt/data'])
call(['docker', 'run', '--rm', '-v', mount_opts, 'busybox', 'chmod', '777', '/mnt/data'])
binds.append('{}:/mnt/data'.format(data_volume_name))
arg.append('--data-dir /mnt/data')
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment