Clean latest api doc from PortMapping and outdated error check
Regarding the outdated error check, there's no `docker.PortMapping` struct anymore and this is linked to something really old #1334 Signed-off-by: Antonio Murdaca <runcom@linux.com> Upstream-commit: 137c12f19a6838eeebfd45c459b883bb69f53d36 Component: engine
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
@@ -105,8 +104,7 @@ func (container *Container) fromDisk() error {
|
||||
dec := json.NewDecoder(jsonSource)
|
||||
|
||||
// Load container settings
|
||||
// udp broke compat of docker.PortMapping, but it's not used when loading a container, we can skip it
|
||||
if err := dec.Decode(container); err != nil && !strings.Contains(err.Error(), "docker.PortMapping") {
|
||||
if err := dec.Decode(container); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user