Upgrade docker sdk to moby (#491)

* Replace deprecated method

* Upgrade docker sdk to moby
This commit is contained in:
Stavros Panakakis
2021-09-07 14:03:13 +03:00
committed by GitHub
parent 94ec06a3fe
commit 3ee2975d76
17 changed files with 39 additions and 38 deletions

View File

@@ -7,7 +7,7 @@ import (
"sync"
"time"
client "docker.io/go-docker"
"github.com/docker/docker/client"
"github.com/play-with-docker/play-with-docker/pwd/types"
"github.com/play-with-docker/play-with-docker/storage"
)
@@ -37,7 +37,7 @@ func (f *localCachedFactory) GetForSession(session *types.Session) (DockerApi, e
}
}
c, err := client.NewEnvClient()
c, err := client.NewClientWithOpts()
if err != nil {
return nil, err
}