mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
Make sure to have a command to execute upon commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user