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 tags and pinned digests to latest.
  -v, --verbose    Show all images, including pinned.

check flags:
  -C, --dir=.      Directory to scan.
  -u, --update     Also check tags and 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.1-py3-none-win_arm64.whl (3.5 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

pindock-1.0.1-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.1-py3-none-win_arm64.whl.

File metadata

  • Download URL: pindock-1.0.1-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.13

File hashes

Hashes for pindock-1.0.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 114b8c25a047e7c7772c471600e3e18ec2ed093b6fe31e717b88b2091492858a
MD5 a6171db9b64a116d3bf1bfc03c5847e8
BLAKE2b-256 208d8072abd09c4a3c471ee16fcfe2c481b86be1bd85f9d2fdcefa808a8756d4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.1-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.13

File hashes

Hashes for pindock-1.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1cc273bcb144c53418872d0ebbc47510220c79b528bb4681a97d9abda331fa10
MD5 6514f6b3fe4c627e3504229b8bd988db
BLAKE2b-256 2bbf2fd16209027efa42032c26774087c375f731fa17697a76be9616f2bb586f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 02abdb6ee4410ac91031e3a841842cd5c7656b7aac81b8857f5bd0b966b003cb
MD5 3f380e821ddb0504fe3d8ea3052ed202
BLAKE2b-256 8a762ceba9e9d590fcdeaab26972fd9c0055b1ce75e4463391ee1871fb2eac75

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4e3d609ac47fc374f3d01a1e0a8c867ef78e76dc79dbb32ed797df23a625428f
MD5 734aa7246da973205582e135e09494dd
BLAKE2b-256 50bc2c074ebc2eff4fcf5cb1f6b0928f2905a19651ce0ceb85f46daccb3a18ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1c00636168e871c5b85c5888418bba3dfbe77e6e4e54b48c97149b89461811e4
MD5 bae48893610d78216692a25338e68ffa
BLAKE2b-256 e2e97afc62f266694e08832db50892c3c96b0b3aead7223fed04fcc887c1dfa7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0c5763bc5f78ea8c985f6a01ccffeef21b6df7816c3702254d2431a4db719416
MD5 0536a930133abd460ae1f725510655a7
BLAKE2b-256 7dd1731990ec8b5d48c367df71e1cf16374b1675e921b33fb6f45cfaf535b7b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a77ab687b96ac034cb24fc5d52ef155be40e84f26f8b1f95a54ad5e88230ae8
MD5 b4b74ac9f5f912ab833ef0d7e7ff29d0
BLAKE2b-256 a9ec78d86e1d152b2c64d617ab857b5f5afb5c9e8bf2bb5c0a2537817ee8e79f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5a46171256f6aa38255435473a7a74baef11a2e3c3c9ab23f4d80b6c05a5a8ac
MD5 decf2c6deeb0fb2f1d65623de37d2b8b
BLAKE2b-256 28743aae0abcdc1e0bb3bd782d39828d5c9a828b7323069cd06782f91b6bf1cd

See more details on using hashes here.

Provenance

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