diff --git a/roles/docker/templates/run.sh.j2 b/roles/docker/templates/run.sh.j2 index 42fc46a9eb8fc0373e9a1c1a794a6df83d23f390..44731691b764a4eec2be16d22e72803aa73947ab 100644 --- a/roles/docker/templates/run.sh.j2 +++ b/roles/docker/templates/run.sh.j2 @@ -17,7 +17,7 @@ opts="{{ container.docker_options | default('') }}" {# Port configuration, and bind mounts #} {% if container.get('ports', []) %} {% for port in container.get('ports',[]) %}{{ opt('expose', port) }}{% endfor %} -{% else %} +{% elif container.get('port') %} {{ opt('expose', container.port) }} {% endif %} {{ opt('mount', 'type=tmpfs,destination=/tmp,tmpfs-mode=01777,tmpfs-size=64M') }}