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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 ea61da833599ea4e9083c05589815b79795d20d80e307e3b0d1edac0b95f54bb
MD5 1cc895b41ad72ceabc5e0f57f665f38a
BLAKE2b-256 288a74ca92914ef7cb6dd3933fd7892b967e83a478a2b3ef47f315e1e6301a80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 23a1a50ec59baa9eb4980f5b834efa45d04bd62d2fcda0114b4fbaf4a364db16
MD5 e153aac1360c84809c8528a6d2d853d3
BLAKE2b-256 b54458e02bb37bddab51cd4c6a6fe37250d30617e4b0cb317b63814e1c108281

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ca2d465333b78c0de4cd6b05899a48bc529d399362ef772ce92dbf13aef38f1b
MD5 4aec2a4bdec6dee1289e39cb5236cc07
BLAKE2b-256 38ebdb609902ccb6e01799ab084046742b4cb2a192ace3a3c89924f007d056ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a662e7a340b63b35bb08561f1b945c8c3df0c9eb9ad42f817dd1929619d6001b
MD5 7bdba42f938fe0548769c833f1cf6e21
BLAKE2b-256 17123f477a1b4cb56cb33653f469c4653114f5ab495486cd2102221aa86a8a8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 aea951aa0d0bfe44d11c2afcaea7c99c92fee6ac9f66f3b8c2c3edab280c037f
MD5 555448e28829598a5fa16f4648d9b21a
BLAKE2b-256 59122fdc71d7b047e3de222e2d252af781dcbc3f30b531bd7afe7c192a91bc3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 bce2d7bfd8989c1314500b217fee89930b42affbf80ed64aef9ac391f31c210d
MD5 dc1d30a5798f98e26b8ecc88c8958562
BLAKE2b-256 20e988f7e6917bba4150bba4e2bd99b2eb05bff876f0adf56dc205e8e4c0f62e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1834c67227b4ab46f0ce09caf6d6d61faa7f86a7cee6941a4b293f9a76849a16
MD5 70f0dfaca5251a34a953ebd434c9dc78
BLAKE2b-256 c256170731df55f4be62dcd6217c6a029590eb5c4087aad8edb3d8ed175f3242

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pindock-1.0.0alpha.4-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b1895d1984d68d5e7ad200360a5ec942d880c40aaeb26869ed73ecf1b67a8d69
MD5 363dc16bd7842f099a4e2ac35ab0e490
BLAKE2b-256 4a6c9bd51950b7f56a4225d34be2016370a1bc651b0472be3d29f67cfb343235

See more details on using hashes here.

Provenance

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