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

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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a1-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.0a1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 e0ed3a4dd378c58173469aa2f8be3cd80d1696eba9c3c519ab528cc7448846dd
MD5 9b4225342cc581a2e87146658a187061
BLAKE2b-256 d351e0378db59a1d0da2b28241855335e1d980d6509c5f982bac10f520e901d9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a1-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.0a1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e0a9f0fb09b6dbe4ba0becf23863cf25a868305723e8e59777976d203720656a
MD5 937d131e8dae2486f453e1fac0f03461
BLAKE2b-256 36ce94bb7ccd5170fbdad1f9cff3858b24ec6a6324c40da9c39aecb1237f90ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 18c6a252beb7a522e1a3cca50337847bc0868dee30dfb05e967ae61ca0750d68
MD5 7ed088c2570e9ee8b7a1aa40a1a32911
BLAKE2b-256 274d6623c6f8db7affa96e06e056b9e647438922b3db8dff154c88db66d4ab8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 bb7e16f1d6810efa75c7dbbd22af2266287521904dbaff0c7a1123865e918a10
MD5 3c8b21d3d82ad5e4eeb0b625ac6e1121
BLAKE2b-256 38e7aa72bae951495584820a8d90329f891c7b9fcbdb9b229fc1e9f8d5084a5b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d676f87447c56150aa03bf1a1214e36e9b1430c17e7bc94698c9988eab3e5b18
MD5 b6c6fa1d98f485a405ae3b92eec40bfc
BLAKE2b-256 c31f37bdf5506cc36a78489011f048d61b827205c083c04713545abc81f63dee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e457daac7a3133e5a97c6043acce0b0e5c03745962716c908ef1b44591a95299
MD5 273e8b2e3ee80f0a0265903723f65900
BLAKE2b-256 a5250961e2f6bf1b4da2e18f85c934ae0febb13bc4d120d88cd60498dc63fd02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e3f7f07bf88d9fc82b956ce9462ef02a0dc758661eeb0fae357bc54e335ce7c
MD5 5674dfd43bb4d0afa2101b6039aaf98b
BLAKE2b-256 7fa0eac3a06b91b83ae7d0695c396c49298104d6d15c9aeaa5e09ab7d4ec1be7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6a00d6ce4bd0d2c5f9347206fe9514d421b09bc41e4663f564f27c739d0df021
MD5 6a6dae11cc569df96ff428da44ef5242
BLAKE2b-256 f5fd54218e482f0bfcef19b13fe86c80562cdc37470f7f220268bdf398b32c02

See more details on using hashes here.

Provenance

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