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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0-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.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 1c4826f8ff7a970c2e81362cea8c1afa9a00b4d9580dbdc21f4938eaa2afdd69
MD5 48a055889b3461e774cc7c75dd22224c
BLAKE2b-256 c0a4789a7106c5d6dec39673dfe71c2164f5a6031c678d69f9bde034da7a8a45

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0-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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 97441184f060d05cdf0bcd5c2d4374c824420c3d581fc3e14cae163c0639341a
MD5 08c8a10fd42d79d9fe3adafe936ed063
BLAKE2b-256 6044d2784a47423f7e51ba85803511db38393213a441b3309ba9daa835a68501

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 07ccf05eb9c7f87816d584abee6d864cb1b836a17879a7c6d9cd56760a5631d7
MD5 3e103a723c85ee477353278238e2dee4
BLAKE2b-256 49cd55819f7a2315d914ebaa34a35fc547d15c2e5edfea1e7b258cfc3c32ff58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 718048a628cfe6bb601ff273ef62c4141de17ab2f41b1f400bf369dc3f111289
MD5 a4df039ed84c5e6bb2ddde2310c7c44e
BLAKE2b-256 2119f0b93bd70706c7beff229037370eb61e0091a02efcfbf39caa17257d5a9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 fc3ed8b6045a91aab13c973b628f2e90bb35e41643740c9d807c1b240a48e57b
MD5 9655662d6ec9580f5a4ef69ec8ee28a4
BLAKE2b-256 5ed3120accc746936aef4e9468bf4f34e31eaf27a2f53267c32e8f30153f1879

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 85ed0e36f4dd6640c192cc8b925cfde44096649456b8a8c4f79fc37f9aab4663
MD5 9eb7984744854f32ad1a69d3a776fa91
BLAKE2b-256 c3bfc4052024412a40fa602c3a6ef1e17fa550b6758513c513dd73ee2ee1ebc1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e36141c9c7759863a3b60c1562d1254f70fb52f0c051433409af3ba136415e46
MD5 573e3ef86f80529e15b93e9a48fe6938
BLAKE2b-256 8db137c23381fb10506b5a3f38223e642a00f92a3ea62de6c54fa1aee6b3ac97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8518e5d67869878169fadb33a92bd8d27c407fcb0a33b89ad1ffc60f9385a747
MD5 4683e23f93107c3a07d5aecfff6216e4
BLAKE2b-256 cd94bdd03b2443cafe99f363142745fbd7cb9149619b16089213a29dc86b9509

See more details on using hashes here.

Provenance

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