Skip to content

Docker check command#17

Open
oh6hay wants to merge 1 commit intoJille:masterfrom
oh6hay:docker-check-command
Open

Docker check command#17
oh6hay wants to merge 1 commit intoJille:masterfrom
oh6hay:docker-check-command

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