[proxy] Handle null HostConfigs gracefully in start
This commit is contained in:
1 parent
725f99ea4c
commit
c24dc6609d
3 files changed
+6
-2
No files matched your search
@@ -24,7 +24,7 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
|
||||
}
|
||||
|
||||
hostConfig := &docker.HostConfig{}
|
||||
if err := unmarshalRequestBody(r, &hostConfig); err != nil {
|
||||
if err := unmarshalRequestBody(r, hostConfig); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user