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

      # args can be passed
      - 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.0a10-py3-none-win_arm64.whl (3.5 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a10-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.0a10-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9a829da2fa80da646f5ed325037863851cd2edb278a3e730a60bd4e4c4a3f5ce
MD5 356d39f51c8280b574bd5ad8f2a095dd
BLAKE2b-256 628786e3ff9a251dbfd83e31557129cc60771ef7b4d7fb8eb08e36f64d11fc0b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a10-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.0a10-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 49a35879483ab5fd86f359696566b3bb50caa2a1104c16d336d9342e12984ba9
MD5 8c142972c4ca64c018e2b12f530e6c52
BLAKE2b-256 573577c2896c68b71fc92edcc275843c4f04af4a97eb55a9b5788ed01ab47d4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f8a7edafd7c1e455c8af47636749786479df42a0d60db93d298d14fa3d82f3b3
MD5 d3d43dc04ff162cff5258b27852a3816
BLAKE2b-256 02d986630444710e91d8f7f28150c9bc745edc7e77979784ed98f6ced30c1932

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 668abd7c15a5058f8dd181d6fc6a21d99e79063913e94b8f6c871ed610a31c11
MD5 5efb47cda2256f95e0af9bfa4ef006a6
BLAKE2b-256 ccc6bf6f2de818c1de0bca7860f5bd4bfcfec64bb3c0405e6cba1ad62467f2d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1a30308b0b50feb50587f1ed78105e8bd7a70190fecb13a3156a343cc6445b27
MD5 4a5a3c1b9f92cbfa6e4b56319d5070fc
BLAKE2b-256 3c923781f7926645ae22ab769c3902c48ea322e092f8c2b712549edcd96a1609

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 397572bd7f1aff049df377fbc28eaea097d85f5c01cf669d9a43e4bef2086820
MD5 1488bdbccd9b994e6bc94f40c93bd74d
BLAKE2b-256 691982cad4e953db85bbf0fa2a8c41a5bdec2f4c0479fcb05be48d1e7c941235

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4899375370bdbb5ea24374174f28a854c41843833f8de0ec675d213ed7a6a446
MD5 9cf8e0c25476a53d8e6da45a9fc85672
BLAKE2b-256 f3fa6d0e922517185e8860fcdf89010441c833ad84ba5838db3edc4b510fd54f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a10-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 11d01c2970cf01769f8561254672b27b3393cb40c1f3afad8309ec197b412ad2
MD5 3e5dba3f95fcc2c596432bd05d165047
BLAKE2b-256 8e5662e7f7d77cc8c7f81e36af4db2d576c2fa4e3b907fc64368b594deff5ea0

See more details on using hashes here.

Provenance

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