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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a11-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.0a11-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 5df0c315338dbd1656c996fe89733604bf7102c725678df630ceeb7790a1aeb0
MD5 e7e29ba5fce536bad7435f98c0eb2e4b
BLAKE2b-256 8d75db24cec2bed0f0490266cb62a4b49d28b092a41fbe20e17083d44c653837

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a11-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.0a11-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a222c32c2b43454854651a1373531afa5b61bc3889344d9601db5865dc03973d
MD5 2f34360a4d5d623b9213d2873426a38b
BLAKE2b-256 1e3f4b0db1b1bf7d2e6fb762186fcb35b3932a0e2078c6905b931fd7b236e643

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d2700012c332f8fcff8ccccb1136a61f812ca318f7b5e610c767d3e0ab5838cb
MD5 a8f32f42dce834901a143ed3df276e79
BLAKE2b-256 56af877929e20e856fe23f166c069a5f42a0fb8cdce9add31a736e84d784e37f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0bb56487eacb0371f349ff3e02d6c90527bcd2801f3f9cabac42a6ef3fe712c2
MD5 3862eac069af7e0ca69dbec7a7f3cb0f
BLAKE2b-256 d4f4335e399098069aa0640f0d6d4254d43678f8ac4d1fa9c2ff94d942b991b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8b1dbf4c5adf6452fabef785f0b8fb5ebe16fb206f3d872051ef702ed3f8faf0
MD5 eaa9405c24b90e2180426c3b708d3f4d
BLAKE2b-256 5fb70fcf3be15272788ef95faa95b618bf3f538f040fa0625aad92e70efe026b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3d0cc9aea36c3653077355952b6953216f3afb1c9efb31515b2e47436bf3ea43
MD5 157144b25b809637a4c1113a767a2869
BLAKE2b-256 1c3291566dcf624c58b50d6d0f86eb15cacc98a2d4e289b9a70c04992932a7de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43ae056f93a464f9b05e405654d196772dad995f4fd1baf3386e237de8d7b62a
MD5 a2b9757bf328d15edfaae7133ca8aa85
BLAKE2b-256 7dfa33238eb80615ac1582cd17a644a666a1fff59eca3ae1b39fb4e8d946013b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a11-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d0c93c18ce39e7d0c2b58463fd916c34db246ca2ce87580cc4883fcd1f931641
MD5 439cbd4378c1b7e7cd658fe8ff542028
BLAKE2b-256 2e605c8740682679ab71a3761f5b07ed76ef85e691679b50834023c0ccf2cbb7

See more details on using hashes here.

Provenance

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