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.
Installation • Usage • Pre-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 likeDockerfile.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00158c42d100f50a8c6a77062554b06f048e7e4a93e3d3d2ef97d7ef2335b1a6
|
|
| MD5 |
ca067c35280f526d971751d0c9c1b249
|
|
| BLAKE2b-256 |
0044ed48ff1631405b8d756c2c08a45d6f1b3be29707e0f596761e8ec746d17a
|
Provenance
The following attestation bundles were made for pindock-1.0.0a2-py3-none-win_arm64.whl:
Publisher:
main.yml on deadnews/pindock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-win_arm64.whl -
Subject digest:
00158c42d100f50a8c6a77062554b06f048e7e4a93e3d3d2ef97d7ef2335b1a6 - Sigstore transparency entry: 1191623540
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae4eab62785d8fd4d12b84c4151669bc9593263a5c12fa56d75dba0f7142cacc
|
|
| MD5 |
2d6d41d929e1792152e55bef59ebaa93
|
|
| BLAKE2b-256 |
6c99a3c4d97252309df65f1a754dcde546f60d1557859899d29ed448c590c489
|
Provenance
The following attestation bundles were made for pindock-1.0.0a2-py3-none-win_amd64.whl:
Publisher:
main.yml on deadnews/pindock
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-win_amd64.whl -
Subject digest:
ae4eab62785d8fd4d12b84c4151669bc9593263a5c12fa56d75dba0f7142cacc - Sigstore transparency entry: 1191623528
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35e57ab36e77a38443a6b18641e98c65ff79faf093bb0e14a4bd945936245adb
|
|
| MD5 |
a6068d9516f5f27f3534b315cc631a6a
|
|
| BLAKE2b-256 |
85b22ed39ce408462f2f3c56f5b7b85a9b8651951b839b48ec6661bf1177ba10
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-musllinux_1_2_x86_64.whl -
Subject digest:
35e57ab36e77a38443a6b18641e98c65ff79faf093bb0e14a4bd945936245adb - Sigstore transparency entry: 1191623543
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e90a5c569599967f2cfda2c23cffd135d69a700c32410dafb9420268b7cf365
|
|
| MD5 |
330df4f8ee51ce87a37c4bae8d406ae3
|
|
| BLAKE2b-256 |
f3e4f5c69e5cc1b5b8a14cdb8e8e31f60ebd9a6eae6d3735424e6b35131166ac
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-musllinux_1_2_aarch64.whl -
Subject digest:
6e90a5c569599967f2cfda2c23cffd135d69a700c32410dafb9420268b7cf365 - Sigstore transparency entry: 1191623532
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a95623c7b00c0ab00031d72693dc353d7ea821cd46d787f864ca4115d11ab33a
|
|
| MD5 |
d7be30639f4c96f734e4ad94b4f8a224
|
|
| BLAKE2b-256 |
1f4b9c32aa6ee1d538a1d199ebd4bb536044052ea2d0c2ff90796693d132be9c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-manylinux_2_17_x86_64.whl -
Subject digest:
a95623c7b00c0ab00031d72693dc353d7ea821cd46d787f864ca4115d11ab33a - Sigstore transparency entry: 1191623527
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f347db1f4bf663df4a212d08a1aac5c72e57278d20b08e30b260c59c6cc7709
|
|
| MD5 |
0e0dfc9b4f79c13a4cfb108a0e3b9849
|
|
| BLAKE2b-256 |
db5854d8da058af82029c27fa383793ad330a57aef6190433395aaa24878d1b0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-manylinux_2_17_aarch64.whl -
Subject digest:
1f347db1f4bf663df4a212d08a1aac5c72e57278d20b08e30b260c59c6cc7709 - Sigstore transparency entry: 1191623530
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cee30ef23a60117266798094890d0a9d29bfb982aa1a4b545545b06579530fa3
|
|
| MD5 |
4b86cbef9e68c92250a0c2d3485ce8c3
|
|
| BLAKE2b-256 |
5161e02da4f784c64248f48b7027f0022385eab47bd960bb1462e06a712ec484
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-macosx_11_0_arm64.whl -
Subject digest:
cee30ef23a60117266798094890d0a9d29bfb982aa1a4b545545b06579530fa3 - Sigstore transparency entry: 1191623534
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pindock-1.0.0a2-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: pindock-1.0.0a2-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.9 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a89d5800d56f296e3a924e4d012806c6ed1523123a6c78e628f5d39cd98d2c6e
|
|
| MD5 |
c394b08ef5d6b0d88b85828079a90fab
|
|
| BLAKE2b-256 |
32b46581dd60349fbd0addeb2f42ebd4f9339ea45b2ce0df83380110a8095596
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pindock-1.0.0a2-py3-none-macosx_10_9_x86_64.whl -
Subject digest:
a89d5800d56f296e3a924e4d012806c6ed1523123a6c78e628f5d39cd98d2c6e - Sigstore transparency entry: 1191623526
- Sigstore integration time:
-
Permalink:
deadnews/pindock@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Branch / Tag:
refs/tags/v1.0.0-alpha.2 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@d47d00b3a11b3f6972e8cc05db27abc139578771 -
Trigger Event:
push
-
Statement type: