Skip to main content

Pin and update Docker image digests in Dockerfiles and compose files

Project description

pindock

Pin and update Docker image digests in Dockerfiles and compose files.

PyPI: Version AUR: version GitHub: Release Docker: ghcr CI: Main CI: Coverage

InstallationUsagePre-commit

Installation

# PyPI
uv tool install pindock

# AUR
yay -S pindock-bin

# Docker
docker pull ghcr.io/deadnews/pindock

Usage

Usage: pindock <command> [flags]

Pin and update Docker image digests.

Commands:
  run      Pin unpinned image digests.
  check    Verify all images are pinned.

run flags:
  -C, --dir=.      Directory to scan.
  -u, --update     Also update pinned digests to latest.
  -v, --verbose    Show all images, including pinned.

check flags:
  -C, --dir=.      Directory to scan.
  -u, --update     Also check pinned digests for updates.
  -v, --verbose    Show all images, including pinned.

When no files are given, pindock auto-discovers files recursively.

Supported files

  • Dockerfile, Containerfile (and variants like Dockerfile.dev, *.dockerfile)
  • compose*.yml, docker-compose*.yml (and .yaml)

Supported instructions

Dockerfile Compose
FROM [--platform=...] image:tag[@digest] [AS name] image: image:tag[@digest]
COPY --from=image:tag[@digest] ...
RUN --mount=from=image:tag[@digest],... ...

Authentication

Uses existing Docker credentials. If you can docker pull, pindock works too.

Pre-commit

repos:
  - repo: https://github.com/deadnews/pindock
    rev: v1.0.0
    hooks:
      - id: pindock
      - id: pindock-check

      # example with args
      - id: pindock-check
        args: [--update, --verbose]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pindock-1.0.0a12-py3-none-win_arm64.whl (3.5 MB view details)

Uploaded Python 3Windows ARM64

pindock-1.0.0a12-py3-none-win_amd64.whl (4.0 MB view details)

Uploaded Python 3Windows x86-64

pindock-1.0.0a12-py3-none-musllinux_1_2_x86_64.whl (3.8 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

pindock-1.0.0a12-py3-none-musllinux_1_2_aarch64.whl (3.5 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

pindock-1.0.0a12-py3-none-manylinux_2_17_x86_64.whl (3.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pindock-1.0.0a12-py3-none-manylinux_2_17_aarch64.whl (3.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pindock-1.0.0a12-py3-none-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pindock-1.0.0a12-py3-none-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file pindock-1.0.0a12-py3-none-win_arm64.whl.

File metadata

  • Download URL: pindock-1.0.0a12-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pindock-1.0.0a12-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 e1b0b94e69a6cf002078bc124b5d06f7c250d62d47b3dd96cf829161cc17d6ef
MD5 2a583e99cd8910b5cddba4db3a2763a6
BLAKE2b-256 461b82e2b7bee4c312d7a1a289aabca34f6a863c4a4f5d13e31ad249cc83ea6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-win_arm64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-win_amd64.whl.

File metadata

  • Download URL: pindock-1.0.0a12-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pindock-1.0.0a12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4e51c359d2718376510088ec41dde91909379549f2449df25ec8cf08f89a95f9
MD5 bd8986edf2f6d19113d35964566a3e2a
BLAKE2b-256 379074f10b9a3e19755e38e2d309cff7d5e4c0a53acc6c43d005e4458132e62a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-win_amd64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 445cb95515e7e1b14fe655655ca8f2ad4f1e9dc95815ef8bc0ca908332781c1a
MD5 a268b82bd95d88519a561b1cb0e272b1
BLAKE2b-256 56a3ed8460f98393af059ea0a482afc0413229ec09f1adc8308e353146e3a48c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-musllinux_1_2_x86_64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 629fbdcb47651c2b9112da14724ac8ad741ca669a7329875b87bbb67e8ca34ab
MD5 f5b44bf4857d580de5db1fc46fca38d7
BLAKE2b-256 347f306eaffa051d4fb4814e032ccbe56e4a0a9a055ea2f6e3e071176d349eb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-musllinux_1_2_aarch64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6095dc2fee909edcf47307a5ce943f5ff91cae8fb1b7723bbce509b11af35b8b
MD5 d007b0b5d66e89e66efa16080ccfd670
BLAKE2b-256 93ea5d8a3ae255030fff9533746239121126f4c801ad8dba9e5f10181cc5897e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-manylinux_2_17_x86_64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3ffcc46e84415c5928aeaa1dbad33f574bdd8418eb4789662fb2af745655e5e4
MD5 b22da4464349c42da1eca9d38087f813
BLAKE2b-256 dc368bffa29775da6144a0fefac3c59f4ed465ed8d49e6b0a27df43549e80bc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-manylinux_2_17_aarch64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfbf00eb079f28e948e938404540f3afbb2ed1fa09a69e27ab51168777b3edc6
MD5 71b97b1839e7557d9d48ffbcd8d00770
BLAKE2b-256 66012820dd24fd28e2f6f93d2bdd5cecff8e58760b78c4324aa9b30a1e2dafb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-macosx_11_0_arm64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pindock-1.0.0a12-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a12-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c6bd3275bc962c9eef592181c1147beffef878defe4ddc01381a8ee273bf459a
MD5 da97e10bee8c5a43322de36f5d0ca27a
BLAKE2b-256 7ad2c9db110e8e101fef65aa228a9f58faabcd361d5df17cbdced80d8cb24790

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a12-py3-none-macosx_10_9_x86_64.whl:

Publisher: main.yml on deadnews/pindock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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