We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c510709 commit bf0fd9dCopy full SHA for bf0fd9d
files/build_templates/docker_image_ctl.j2
@@ -103,9 +103,17 @@ start() {
103
104
DOCKERCHECK=`docker inspect --type container {{docker_container_name}} 2>/dev/null`
105
if [ "$?" -eq "0" ]; then
106
+ {%- if docker_container_name == "database" %}
107
+ DOCKERMOUNT=""
108
+ {%- else %}
109
DOCKERMOUNT=`getMountPoint "$DOCKERCHECK"`
- if [ "$DOCKERMOUNT" == "$HWSKU" ]; then
110
+ {%- endif %}
111
+ if [ x"$DOCKERMOUNT" == x"$HWSKU" ]; then
112
113
+ echo "Starting existing {{docker_container_name}} container"
114
115
echo "Starting existing {{docker_container_name}} container with HWSKU $HWSKU"
116
117
preStartAction
118
docker start {{docker_container_name}}
119
postStartAction
0 commit comments