Skip to content

Commit

Permalink
[gantry] print docker version
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Sep 29, 2024
1 parent 73d60bc commit 4f027be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ gantry() {
log DEBUG "Set NODE_NAME=${RUN_ON_NODE}"
export NODE_NAME="${RUN_ON_NODE}"
fi
log INFO "Run on Docker host ${RUN_ON_NODE}."
log INFO "Run on Docker host ${RUN_ON_NODE}. $(docker --version 2>&1)"

local ACCUMULATED_ERRORS=0

Expand Down
1 change: 1 addition & 0 deletions src/lib-gantry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ _remove_container() {
gantry_remove_images() {
local IMAGES_TO_REMOVE="${1}"
local IMAGE RMI_MSG
docker --version 2>&1 | log_lines DEBUG
for IMAGE in ${IMAGES_TO_REMOVE}; do
if ! docker image inspect "${IMAGE}" 1>/dev/null 2>&1 ; then
log DEBUG "There is no image ${IMAGE} on the node.";
Expand Down

0 comments on commit 4f027be

Please sign in to comment.