Skip to content
Discussion options

You must be logged in to vote

It was resolved when setting OutputFormat in the build option

buildOptions := types.BuildOptions{
		ContainerFiles: []string{dockerfileName},
		BuildOptions: buildahDefine.BuildOptions{
			NoCache:                noCache,
			RemoveIntermediateCtrs: remove,
			Output:                 targetTag,
			ContextDirectory:       contextDir,
			Layers:                 layers,
+           OutputFormat: buildahDefine.OCIv1ImageManifest, // or buildahDefine.Dockerv2ImageManifest
		},
	}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by A2va
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant