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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a3-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.0a3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 271f51de85cb972e6c69ebb02a73abc449b71d65c49eb079694136d5bb393450
MD5 4c361164c7681f1fd685feb89a82eaf3
BLAKE2b-256 201735d0ba1482666985c765fc5392a0fb3fa4c1bb84afdc489db1ccc6ec2d4a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a3-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.0a3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 927b24b0bc1d3663b796cb2622481afac7e999608959d90cb47b9e321b6cfef1
MD5 59e8a3d2034fe55fcb5c4e5706c51731
BLAKE2b-256 4b8f4c2c1c12ca66838dbf42cc14c2c6f4f94454e2feb29167ff8aa3f3b0427d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f12bfdcdc7689b0c8d03b1bcc82d4a6d0a5e60135cf293e6b50c914c5678c9ae
MD5 48261492939d26dc791097c0b725e6d3
BLAKE2b-256 91ec0b4637c79a2f862ae407fcbeedb0b2932226794539ac9336833207697aef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7204fbd16f835bb007ada8d0649df5adb7bffa147af7f4ec87ea8368f8bc7a56
MD5 fbdacf495a1dcaebb7e2d4ee2753e854
BLAKE2b-256 37e106ae478d7ab19a65fda86c7ea988b537576486a633ac86cc821eeb8bf593

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d6d263e33eca70df67822271127a5f800d441c6dd374bed5794a45dd70dc3878
MD5 05844a99589f90dc0f1cbacd23ccafcd
BLAKE2b-256 c0dd0c3ba57985f9e1170ac1f37cfed53d603e7569299fc12b42465ac3895ef4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2df2ea653ab13df59d618a57814bc2123477d9d7021703444ab012197ba53500
MD5 16a3af6401d7d4c0801dbfda7c179fb8
BLAKE2b-256 6cbc1ba69e02137af00009f33210782a24b808f980cc5d5fdadd6711997f8893

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 588d889edc206b4af8a5e8b1dbe1c9cbe220ef9bbe7d8351df2c0871957e204b
MD5 d1fa521473070d11a2521f16a2d702af
BLAKE2b-256 353750e3eff54b176c35b175ffdde8a746b016bd771e4af8541710fab4ad7a4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a3-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 517ea3d4f8d8b6d32c6985cd32fb5884ef63726a90677bfad6bfdc15d1700c3c
MD5 c986b9f5d05e5eb47f1ffa67c38a08e7
BLAKE2b-256 2136f4c2b9a0e0e7a4d2a7168d12debf99083e143df459810063d022c7ae1de0

See more details on using hashes here.

Provenance

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