Skip to content

Docker check command #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

oh6hay
Copy link
Contributor

@oh6hay oh6hay commented Aug 9, 2022

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
# ...

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 `dockpin` command returns a nonzero value (might be useful in a CI pipeline, for example)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant