Skip to content

Commit b1faf13

Browse files
authored
docs(initrd): Add Podman usage in BuildKit connection error (#2201)
Reviewed-by: Alexander Jung <alex@unikraft.io> Approved-by: Alexander Jung <alex@unikraft.io>
2 parents 33e6050 + 314af40 commit b1faf13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

initrd/dockerfile.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,12 @@ func (initrd *dockerfile) Build(ctx context.Context) (string, error) {
318318
log.G(ctx).Warn("which you can do by running:")
319319
log.G(ctx).Warn("")
320320
log.G(ctx).Warn(" docker run --rm -d --name buildkit --privileged moby/buildkit:" + buildkitVersion)
321-
log.G(ctx).Warn(" export KRAFTKIT_BUILDKIT_HOST=docker-container://buildkit")
321+
log.G(ctx).Warn("")
322+
log.G(ctx).Warn("Depending on your container runtime, you should connect to Buildkit via:")
323+
log.G(ctx).Warn("")
324+
log.G(ctx).Warn(" export KRAFTKIT_BUILDKIT_HOST=docker-container://buildkit # for docker")
325+
log.G(ctx).Warn("or")
326+
log.G(ctx).Warn(" export KRAFTKIT_BUILDKIT_HOST=podman-container://buildkit # for podman")
322327
log.G(ctx).Warn("")
323328
log.G(ctx).Warn("For more usage instructions visit: https://unikraft.org/buildkit")
324329
log.G(ctx).Warn("")

0 commit comments

Comments
 (0)