Removing the save to disk as it was not really necessary

Upstream-commit: 2b5553144a9249bbfed9be2a181b051a66350cb1
Component: engine
This commit is contained in:
Kimbro Staken
2013-07-08 16:03:18 -07:00
parent 1a5cae3fdb
commit 13025daedd

View File

@ -281,10 +281,7 @@ func (b *buildFile) run() (string, error) {
// 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:]
if err := c.ToDisk(); err != nil {
return "", err
}
c.Args = b.config.Cmd[1:]
//start the container
hostConfig := &HostConfig{}