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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: pindock-1.0.0a9-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.0a9-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 07f18c7b44a513718219359cc6d7118f215e86157fea9ef2c6cc95ee424fc775
MD5 35c3835662979bd1904965e093cb55a4
BLAKE2b-256 7b9da160617e39af5c1625f92892b336eb3561ca388fb5f652dd29364a90ab7e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pindock-1.0.0a9-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.0a9-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 481dd3fcba6b5dbaaa360de9ea525ac3c47307a26adfb5a6528f1ba19e9cdc19
MD5 88de21fcb7a6b8e85e7213eaf9ec9b3e
BLAKE2b-256 b6ec94a8ebc6f145b842f63e095feeff69f77025d687120632817278ca416a92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fcc969fe5ce55e070271e6271f63727ca41801ff0e779792284b8a5c74ea7c21
MD5 caf5a1f846b0d6df7c690875012d244e
BLAKE2b-256 17278664c2f2ee9c0ced84a14fabe8d62474f7737b4169422f2793a715cba082

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1f050c187023221f8b691e9791c1ddd2441fe6d9d035cabde396f2bf82f01c56
MD5 c2ac6d1063b19bb5b063ed0c92b69275
BLAKE2b-256 463fb8203b9358942329d8aa92cac9bc9dfb229d0cb5d9fa729c892e9ec589d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0c682aae1f8adc5f9490d93699ea8cfc832c79df98bcf2a6bd6f6e13b8ac4420
MD5 60ace98c9813f53664d0fc5c4f9deac5
BLAKE2b-256 8f6dda8885bfb4f2d0493920eba4edd42a24983d5c7062c2a1f732a3ef47e434

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d2d9f8af11b898a5935dbdce59ef4370410337e315076ba8dbfd40208d56748e
MD5 b8a4a77551ab1b2eef6750136f201480
BLAKE2b-256 bacc63795e3a9e53fcf9daa039ec622bcb12303b472783b7ad8157260f6d37ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 254d859d9e8e32f8db6b2c88b676e85e34a159db3ceb1d550c5381afa9d472e8
MD5 d46da0fadbc6083ee7cd55a5d82a09a3
BLAKE2b-256 638710c6fd1e803670d06c9dfe282b069f4adadf00b2d1520c94e85011bfb180

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0a9-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c49c4a317063707b6d7e286a9a2a21a0a9cbf27a9ddf82e9ae9d4ad9c1c7c66c
MD5 620306e8867a9b42b8532289dfc0508d
BLAKE2b-256 252bc36268cdb6ba0d5c0e4fc4048ca292b7b9fddb035c014e21a5820018242e

See more details on using hashes here.

Provenance

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