mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make sure to have a command to execute upon commit
This commit is contained in:
parent
c2a14bb196
commit
b51303cddc
1 changed files with 4 additions and 0 deletions
|
@ -134,6 +134,10 @@ func (b *BuilderClient) CmdInsert(args string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BuilderClient) commit() 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)
|
body, _, err := b.cli.call("POST", "/containers/create", b.config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue