Override Entrypoint picked up from the base image that breaks run commands in builder

This commit is contained in:
Kimbro Staken 2013-07-08 00:11:45 -07:00
parent e2b8ee2723
commit f64dbdbe3a
1 changed files with 4 additions and 0 deletions

View File

@ -279,6 +279,10 @@ func (b *buildFile) run() (string, error) {
b.tmpContainers[c.ID] = struct{}{}
fmt.Fprintf(b.out, " ---> Running in %s\n", utils.TruncateID(c.ID))
// override the entry point that may have been picked up from the base image
c.Path = b.config.Cmd[0]
c.Args = b.config.Cmd[1:]
//start the container
hostConfig := &HostConfig{}
if err := c.Start(hostConfig); err != nil {