forked from sassanix/Warracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Update docker/dockerfile Docker tag to v1.26.0 (from 1.19.0) #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Erwan-loot
wants to merge
1
commit into
main
Choose a base branch
from
renovate/docker-dockerfile-1.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Security & Privacy | π‘ Minor | β‘ Quick win
π§© Analysis chain
π Script executed:
Repository: Erwan-loot/Warracker
Length of output: 388
π Script executed:
Repository: Erwan-loot/Warracker
Length of output: 5072
Set the final Dockerfile
USERto the non-root user.The runtime stage creates
warracker, but the Dockerfile does not switch to it. AddUSER warrackerbefore any remainingCMD/ENTRYPOINTinstructions so Docker does not run the final container as root.π§° Tools
πͺ Trivy (0.72.0)
[error] 1-1: Image user should not be 'root'
Specify at least 1 USER command in Dockerfile with non-root user as argument
Rule: DS-0002
Learn more
(IaC/Dockerfile)
π€ Prompt for AI Agents
Source: Linters/SAST tools
π― Functional Correctness | π‘ Minor | β‘ Quick win
π§© Analysis chain
π Script executed:
Repository: Erwan-loot/Warracker
Length of output: 202
π Web query:
Docker Hub docker/dockerfile 1.25.0 tag digest docker/dockerfile:1.26.0 stable labsπ‘ Result:
The docker/dockerfile image repository maintains two distinct release channels: stable and labs [1]. Regarding your specific version queries: 1.25.0 Digest The docker/dockerfile:1.25.0 image is a stable release [2][3]. As a multi-architecture image, its digest depends on the specific platform (OS/architecture). For example, common digests include: - linux/amd64: sha256:3d6d54b33351b396a910d33248754b86b1d7dd838b4eeb9575d8903a209f6516 [4] - linux/386: sha256:2f00aaf9bf92f199a8b6cb1ea1e6c99a670608f331c244df4ce9bd11707b6399 [5] - linux/arm/v7: sha256:c3b000a466cb7f33195e37dbe04c14bf07fdaa159774bcc271f40a3e41f9de01 [6] 1.26.0 Stable and Labs The 1.26.0 version is released on both channels [7]: - Stable: docker/dockerfile:1.26.0 contains the standard, production-ready features [7][1]. - Labs: docker/dockerfile:1.26.0-labs includes all features from the stable 1.26.0 release, plus additional experimental or early-access features [1][8]. The labs channel is designed for testing new functionality before it is promoted to the stable channel [1][8]. While labs images generally follow the same versioning pattern as stable, early-access features in labs may not follow semantic versioning and could be subject to breaking changes [1]. It is recommended to pin specific versions if you are using the labs channel to ensure consistent behavior [3][1].
Citations:
π Web query:
docker/dockerfile Docker Hub tags latest 1.25.0 1.26.0π‘ Result:
The docker/dockerfile repository on Docker Hub provides official Dockerfile frontend images used by BuildKit [1][2]. These images are organized into two primary release channels: latest (stable) and labs [1][2]. Tags such as 1.25.0 and 1.26.0 are specific, immutable releases [2]. The repository also provides semver-based rolling tags like 1.25 and 1.26, which are updated automatically to the latest patch release within that version branch (e.g., 1.25 tracks the latest 1.25.x release) until the next minor version is released [2]. Regarding the specific tags you mentioned: - 1.25.0: A specific, immutable patch release [2]. - 1.26.0: A specific, immutable patch release [2]. - latest: This tag typically points to the most recent stable release of the Dockerfile frontend [1][2]. For most users, it is recommended to use the syntax # syntax=docker/dockerfile:1 in your Dockerfile [3]. This ensures you always receive the latest stable updates and bug fixes for the major version 1 release without needing to manually update the tag [1][3]. If you require specific behavior, you may pin to an immutable tag like 1.26.0 [2]. There is also a labs channel (e.g., 1.26-labs), which contains experimental features and uses an incrementing numbering scheme [1][4].
Citations:
Use the intended
1.25.0digest for this pin.docker/dockerfile:1.26.0is a valid stable tag, but the pinned digestsha256:ecfaec9ed6d810b56388c508f4121597bfbba70d41a6dfeee4d8cad5f295fc32should not be used with a different tag. Update the digest to the exact manifest fordocker/dockerfile:1.25.0.π§° Tools
πͺ Trivy (0.72.0)
[error] 1-1: Image user should not be 'root'
Specify at least 1 USER command in Dockerfile with non-root user as argument
Rule: DS-0002
Learn more
(IaC/Dockerfile)
π€ Prompt for AI Agents