mirror of
https://github.com/docker/cli.git
synced 2026-09-24 07:25:07 -05:00
Avoid nil pointer dereference while creating a container with an empty Config
Signed-off-by: Antonio Murdaca <runcom@linux.com> Upstream-commit: 4ce817796e639391f6bc3e338f5a88985daacaca Component: engine
This commit is contained in:
@@ -658,10 +658,6 @@ func (s *Server) postCommit(version version.Version, w http.ResponseWriter, r *h
|
||||
return err
|
||||
}
|
||||
|
||||
if c == nil {
|
||||
c = &runconfig.Config{}
|
||||
}
|
||||
|
||||
containerCommitConfig := &daemon.ContainerCommitConfig{
|
||||
Pause: pause,
|
||||
Repo: r.Form.Get("repo"),
|
||||
|
||||
Reference in New Issue
Block a user