Upgrade docker sdk to moby (#491)
* Replace deprecated method * Upgrade docker sdk to moby
This commit is contained in:
committed by
GitHub
parent
94ec06a3fe
commit
3ee2975d76
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user