diff --git a/dockcheck.sh b/dockcheck.sh index 7273d2d..0e79463 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -135,9 +135,10 @@ if [ -n "$GotUpdates" ] ; then if [ "$UpdYes" != "${UpdYes#[Yy]}" ] ; then for i in "${SelectedUpdates[@]}" do - ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files"}}') - $DockerBin -f "$ContPath" pull "$i" - $DockerBin -f "$ContPath" up -d "$i" + ContPath=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.project.config_files" }}') + ContName=$(docker inspect "$i" --format '{{ index .Config.Labels "com.docker.compose.service" }}') + $DockerBin -f "$ContPath" pull "$ContName" + $DockerBin -f "$ContPath" up -d "$ContName" done else printf "\nNo updates installed, exiting.\n"