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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a0-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.0a0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 70bb271a6f569d472d36a54d5977a6e9b4a3f55582eee7f64301f354d352c878
MD5 9bb424c273b8d2d57f84bac55465ad9c
BLAKE2b-256 5de80facc2f3e8a5dd838bc81b2f07d076d445c03f52d252ea5dba30ff222bde

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a0-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.0a0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 82271787d1e1eb397ef957833024372018fe52d645622822b591cb5df4b88510
MD5 dfec1b9a3f6274e319a97219abd28f93
BLAKE2b-256 d8c90e582f4e6a64258e1ab3e61a39bc3af9427cdd4b2e985c6d48fdaec1fa82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d0f68bfe17546f8b3fd66d4814ea16c1dc173bf4bc7054b267c3eddb0d766c19
MD5 c8a4722999b1cefd3acf856a526d28b0
BLAKE2b-256 2d661bbb86eac1c1cdbe8a5b19583a8c2ba6366fcc298bb0d9ee5f3b44e03fa8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 21704a35b73ce00a74386ee26fbdfc7cd72f9ceb773a8d90afe390c01516f134
MD5 f656ae03af938a97bc9d610184ada53f
BLAKE2b-256 e62fb9936e9767f7cfe8c1c5aa3e4f348106cfc8f03bd7f34fa70b27b197541a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 16ee97351ec050262a61f0c972c7b66305d96ff266ad5789bf5aac2dc8ff439d
MD5 cc86bccec5bd24f411875b73c6b7a684
BLAKE2b-256 f748c4179d8840bae91e58917602d4a1dfe02b97caafc26b4a930dace6c6b65f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8929e3ffe8f81b887fbf2f10cfe1d0d904a51d9a8569a70bd197f4daf5b570ee
MD5 4fe159ea840a83e2c6ae9c708dcfe20a
BLAKE2b-256 98153a0dbc93d54f63f346673582b5ace88389294034e8c5e78f3fd2a9dc9b90

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 607804d29d93d8a14372c39dd43d439813cfa5fe041648026d06e52fc0311edb
MD5 3edaaff8badb9041ad1599d0bb22236d
BLAKE2b-256 5ce3b941e2ac53b3e2babf9c4115124b4664eb87b47ab28a5ced8e1a34beb256

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 021a695f3f9308a6fb81465e4e06d8eb9b091fe91c260a9e3642ac2e1ae58ea7
MD5 19c5f82ce2a096ab80768291033e30d6
BLAKE2b-256 b9cdf09b8c12d24e25898a14716f0aee55075df0683863d472e7cf690e996675

See more details on using hashes here.

Provenance

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