dockpin icon indicating copy to clipboard operation
dockpin copied to clipboard

Docker check command

Open oh6hay opened this issue 2 years ago • 0 comments

The docker check command reads a Dockerfile, checks each base image reference, and prints a message if any of the base images are not tagged at the latest checksum. Also, if not all images are tagged latest, the main executable returns a nonzero value (might be useful in a CI pipeline, for example):

#!/bin/bash
# this is a CI job
if dockpin docker check -f ./Dockerfile ; then
  echo maybe update your Dockerfile
fi
# ...

oh6hay avatar Aug 09 '22 11:08 oh6hay