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 [<files> ...] [flags]
    Pin unpinned image digests.

  check [<files> ...] [flags]
    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.
  -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
      - id: pindock-update

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.0a6-py3-none-win_arm64.whl (3.5 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

pindock-1.0.0a6-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.0a6-py3-none-win_arm64.whl.

File metadata

  • Download URL: pindock-1.0.0a6-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.0a6-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 1a01871e1af596224449b661933e6fb64edea31e2eafb7bd6fc86f284e79fb9f
MD5 b0a79949fbd2d069f6671a093d097dfd
BLAKE2b-256 05f65f1783136a3cddb1fa4a31099a002ab72efbbd7da6c696e8b5bcfc9ed474

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-win_amd64.whl.

File metadata

  • Download URL: pindock-1.0.0a6-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.0a6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 69019739164c62c85c4bc9a54ec6eff217d41f2b45744a8e5505625b39559c11
MD5 42f57a2e6ebb0ff2bfd2773998717676
BLAKE2b-256 cb7b64621670b4c43ccc69a24741dc041b7ae77fc7771a7662b0ba512440b25f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2dc822035b8c5551a6159308a1b9e62eafde6fa700305f49822e934b97791ada
MD5 a9eb7832285418ae38c99129b6eed3aa
BLAKE2b-256 2d028568266f9f24848208c16756e30af8a9ac51c512b42a89953f7e2e1d9030

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3e4d64553a91345e6aa58b8414a1d7093924a366a0a449716c27da9d0ddaf4e7
MD5 d72175cef17bb5dc5cbee4cdbe0d1f59
BLAKE2b-256 a1cf23cc3b649dbb6df8977e857aba26d3a58930fdd2cf26bba2f267fd658f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 067f8e1f53816dde5fd08a027f6267d612ec871f17237ddb42e53404bccca138
MD5 52cd522f01eaba2d5883b95ec1d35ecb
BLAKE2b-256 de22efb1d460fbdaff6402f93344ffa6e8f66f0cd570f7ae5d837a892c0a2097

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 b9cc0213f31d5936ab24b7ff7c2775686592efa5cb17b9a81b083c5afc32ae3c
MD5 84bf33302a84141aefe788cf9f3d2baf
BLAKE2b-256 8e9efb0c9f79a7f966246dced1caf4743032b36c5d231f8b29306e005e642d04

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d29fd3a1b33a7e1d05c9fc6ce07cd0cc9174ba8792059ef489239f449ec73b06
MD5 cf72eb62109dfbdfeb05206592c5233e
BLAKE2b-256 9dbe6b5d27a07d9e59fc889fc7ae894988912bb4944f19ba760a82acad4622cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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.0a6-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pindock-1.0.0a6-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4721a7c6a3e3b99bd513df5d68a2ff3ddf2ac3013859d459ad597a7e9ce7e679
MD5 afa81b57f86a9ea0e2271ece1a76b9d8
BLAKE2b-256 7e913bad4543ee69e014cc87129945bd6502dab5fe2f6f7927fa870a3710a8c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pindock-1.0.0a6-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