mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-04 14:22:22 -04:00
Merge pull request #13343 from tnaroska/docker_build_containerd_fix
Fix#13342 adapt docker provider build for containerd storage
This commit is contained in:
commit
b5d62e2d81
2 changed files with 14 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ module VagrantPlugins
|
|||
# In this case, docker buildkit is enabled. Its format is different
|
||||
# from standard docker
|
||||
matches = result.scan(/writing image .+:([^\s]+)/i).last
|
||||
if !matches
|
||||
# Check for outout of docker using containerd backend store
|
||||
matches = result.scan(/exporting manifest list .+:([^\s]+)/i).last
|
||||
end
|
||||
if !matches
|
||||
if podman?
|
||||
# Check for podman format when it is emulating docker CLI.
|
||||
|
|
|
|||
|
|
@ -207,6 +207,16 @@ describe VagrantPlugins::DockerProvider::Driver do
|
|||
end
|
||||
end
|
||||
|
||||
context "using buildkit with containerd backend output" do
|
||||
let(:stdout) { "exporting manifest list sha256:1a2b3c4d done" }
|
||||
|
||||
it "builds a container with buildkit docker (containerd)" do
|
||||
container_id = subject.build("/tmp/fakedir")
|
||||
|
||||
expect(container_id).to eq(cid)
|
||||
end
|
||||
end
|
||||
|
||||
context "using podman emulating docker CLI" do
|
||||
let(:stdout) { "1a2b3c4d5e6f7g8h9i10j11k12l13m14n16o17p18q19r20s21t22u23v24w25x2" }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue