Skip to main content

Checks if Docker images are properly pinned in docker-compose.yml and Dockerfile files

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

docker-image-pin

Based on https://nickcunningh.am/blog/how-to-automate-version-updates-for-your-self-hosted-docker-containers-with-gitea-renovate-and-komodo

# bad - don't do this
image: gitea/gitea
image: gitea/gitea:latest

# ok - better than nothing, but not specific enough for renovate to do it's job
image: gitea/gitea:1
image: gitea/gitea:1.23

# good - the @sha256 pins latest to a specific build digest, but obfuscates the real version of the image
image: gitea/gitea:latest@sha256:01bb6f98fb9e256554d59c85b9f1cb39f3da68202910ea0909d61c6b449c207d

# better - pins the image to a clear and specific image version
image: gitea/gitea:1.23.6

# best - pins the image to a specific version AND digest, makes the specific version immutable
image: gitea/gitea:1.23.6@sha256:01bb6f98fb9e256554d59c85b9f1cb39f3da68202910ea0909d61c6b449c207d

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docker_image_pin-0.4.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docker_image_pin-0.4.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file docker_image_pin-0.4.0.tar.gz.

File metadata

  • Download URL: docker_image_pin-0.4.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.15

File hashes

Hashes for docker_image_pin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4d5ab510e4fe2fc71d7bce713773682df39319f3de7cd1f2d9e35a8e5e82b476
MD5 fb220d5fc6d5826e22f8b97c15fa81fa
BLAKE2b-256 dcac824bf9b867c8d991e86dc71306e6a8f1b1dd0bb65c3d918bf7991b35dc02

See more details on using hashes here.

File details

Details for the file docker_image_pin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docker_image_pin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8680367219c22d2d8864c54230689445d23070359166a35333cc1a639b709c7e
MD5 623cf1e278e8212f083e7c167021ce36
BLAKE2b-256 88776ad1fe0e93c83946ec781577a6ed70072e2791a6adea1195b58bfec85ae7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page