Skip to content

Commit b0a58e5

Browse files
richvdhjevolk
authored andcommitted
Work around Podman's compatibility API returning 500 errors. (matrix-org#779)
1 parent b23d3cf commit b0a58e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/docker/builder.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ func (d *Builder) construct(bprint b.Blueprint) (errs []error) {
343343
Pause: true,
344344
Reference: "localhost/complement:" + res.contextStr,
345345
Changes: toChanges(labels),
346+
347+
// Podman's compatibility API returns a 500 if the POST request has an empty body, so we give it an empty
348+
// Config to chew on.
349+
Config: &container.Config{},
346350
})
347351
if err != nil {
348352
d.log("%s : failed to ContainerCommit: %s\n", res.contextStr, err)

0 commit comments

Comments
 (0)