From b51303cddce2cbb22fc3ee0de9d9125bec2f029a Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Mon, 20 May 2013 13:50:50 -0700 Subject: [PATCH] Make sure to have a command to execute upon commit --- builder_client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder_client.go b/builder_client.go index 0ad35045dd..0c7ea15e13 100644 --- a/builder_client.go +++ b/builder_client.go @@ -134,6 +134,10 @@ func (b *BuilderClient) CmdInsert(args string) error { } func (b *BuilderClient) commit() error { + if b.config.Cmd == nil || len(b.config.Cmd) < 1 { + b.config.Cmd = []string{"echo"} + } + body, _, err := b.cli.call("POST", "/containers/create", b.config) if err != nil { return err