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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a2-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.0a2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 00158c42d100f50a8c6a77062554b06f048e7e4a93e3d3d2ef97d7ef2335b1a6
MD5 ca067c35280f526d971751d0c9c1b249
BLAKE2b-256 0044ed48ff1631405b8d756c2c08a45d6f1b3be29707e0f596761e8ec746d17a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a2-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.0a2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ae4eab62785d8fd4d12b84c4151669bc9593263a5c12fa56d75dba0f7142cacc
MD5 2d6d41d929e1792152e55bef59ebaa93
BLAKE2b-256 6c99a3c4d97252309df65f1a754dcde546f60d1557859899d29ed448c590c489

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 35e57ab36e77a38443a6b18641e98c65ff79faf093bb0e14a4bd945936245adb
MD5 a6068d9516f5f27f3534b315cc631a6a
BLAKE2b-256 85b22ed39ce408462f2f3c56f5b7b85a9b8651951b839b48ec6661bf1177ba10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6e90a5c569599967f2cfda2c23cffd135d69a700c32410dafb9420268b7cf365
MD5 330df4f8ee51ce87a37c4bae8d406ae3
BLAKE2b-256 f3e4f5c69e5cc1b5b8a14cdb8e8e31f60ebd9a6eae6d3735424e6b35131166ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a95623c7b00c0ab00031d72693dc353d7ea821cd46d787f864ca4115d11ab33a
MD5 d7be30639f4c96f734e4ad94b4f8a224
BLAKE2b-256 1f4b9c32aa6ee1d538a1d199ebd4bb536044052ea2d0c2ff90796693d132be9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1f347db1f4bf663df4a212d08a1aac5c72e57278d20b08e30b260c59c6cc7709
MD5 0e0dfc9b4f79c13a4cfb108a0e3b9849
BLAKE2b-256 db5854d8da058af82029c27fa383793ad330a57aef6190433395aaa24878d1b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cee30ef23a60117266798094890d0a9d29bfb982aa1a4b545545b06579530fa3
MD5 4b86cbef9e68c92250a0c2d3485ce8c3
BLAKE2b-256 5161e02da4f784c64248f48b7027f0022385eab47bd960bb1462e06a712ec484

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a89d5800d56f296e3a924e4d012806c6ed1523123a6c78e628f5d39cd98d2c6e
MD5 c394b08ef5d6b0d88b85828079a90fab
BLAKE2b-256 32b46581dd60349fbd0addeb2f42ebd4f9339ea45b2ce0df83380110a8095596

See more details on using hashes here.

Provenance

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