PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 18, 2022

[FIXED] How to check the default buildkit version?

 October 18, 2022     docker, docker-buildkit     No comments   

Issue

Background

I want to check if my current docker setup with BuildKit contains this commit.

Question

How do I find out what BuildKit versions docker uses when I build an image with

DOCKER_BUILDKIT=1 docker build

Solution

Update: as commented by @N1ngu, if you're doing these steps on recent versions (>= 22), check vendor.mod instead of vendor.conf.

I don't think it does. My Docker version is pretty recent (20.10.12) and has a buildkit version that precedes that. Here's what I did to try to check:

  1. Get the commit id for my current version of docker:
$docker --version
Docker version 20.10.12, build e91ed5707e
  1. Find the commit on github (or locally if you clone the repo)

  2. Check the commit specified for buildkit on vendor.conf for that version:

github.com/moby/buildkit                            8142d66b5ebde79846b869fba30d9d30633e74aa # v0.8.1
  1. Compare these commits on buildkit's repository. On this page, you can see that 8142d66, the version Docker 20.10.12 bundles, precedes aa46719. If it was the opposite, the comparison tool would the branch as up-to-date, like what happens if you invert the commits in the URL.


Answered By - Leonardo Dagnino
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing