From 503bcb55d79ca6900e49ff6db63244c56ba682c0 Mon Sep 17 00:00:00 2001 From: Benoit Moussaud Date: Tue, 15 Mar 2016 14:20:00 +0100 Subject: [PATCH] manage mode on volumes --- src/main/resources/docker/docker-create.sh.ftl | 4 ++-- src/main/resources/synthetic.xml | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/resources/docker/docker-create.sh.ftl b/src/main/resources/docker/docker-create.sh.ftl index 2323166..bafa730 100644 --- a/src/main/resources/docker/docker-create.sh.ftl +++ b/src/main/resources/docker/docker-create.sh.ftl @@ -11,7 +11,7 @@ echo "Running ${deployed_container.id}" <#assign cmdLine = ["docker", "create"] /> <#if (deployed_container.publishAllExposedPorts)> - <#assign cmdLine = cmdLine + ["-P"]/> + <#assign cmdLine = cmdLine + ["--publish-all"]/> <#if (deployed_container.restartAlways)> <#assign cmdLine = cmdLine + ["--restart=always"]/> @@ -33,7 +33,7 @@ echo "Running ${deployed_container.id}" <#assign cmdLine = cmdLine + ["--link=${link.name}:${link.alias}"]/> <#list deployed_container.volumes as volume> - <#assign cmdLine = cmdLine + ["-v ${volume.source}:${volume.destination}"]/> + <#assign cmdLine = cmdLine + ["--volume=${volume.source}:${volume.destination}:${volume.mode}"]/> <#list deployed_container.volumesFrom as volume> <#assign cmdLine = cmdLine + ["--volumes-from=${volume}"]/> diff --git a/src/main/resources/synthetic.xml b/src/main/resources/synthetic.xml index 4e0c55f..34542d1 100644 --- a/src/main/resources/synthetic.xml +++ b/src/main/resources/synthetic.xml @@ -68,6 +68,10 @@ + + + @@ -190,7 +194,7 @@ description="Specify labels for the created engine key=value"/> - + @@ -208,7 +212,7 @@ description="Specify labels for the created engine key=value" category="Engine"/> - +