mirror of
https://github.com/containrrr/watchtower.git
synced 2026-01-24 01:36:09 +01:00
fix: gracefully stop containers (#237)
- upgraded docker api dependencies to v23.0.1+incompatible
This commit is contained in:
parent
3b0aac2778
commit
f17b338303
4 changed files with 11 additions and 8 deletions
|
|
@ -39,9 +39,9 @@ type Client interface {
|
|||
// NewClient returns a new Client instance which can be used to interact with
|
||||
// the Docker API.
|
||||
// The client reads its configuration from the following environment variables:
|
||||
// * DOCKER_HOST the docker-engine host to send api requests to
|
||||
// * DOCKER_TLS_VERIFY whether to verify tls certificates
|
||||
// * DOCKER_API_VERSION the minimum docker api version to work with
|
||||
// - DOCKER_HOST the docker-engine host to send api requests to
|
||||
// - DOCKER_TLS_VERIFY whether to verify tls certificates
|
||||
// - DOCKER_API_VERSION the minimum docker api version to work with
|
||||
func NewClient(opts ClientOptions) Client {
|
||||
cli, err := sdkClient.NewClientWithOpts(sdkClient.FromEnv)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"github.com/docker/docker/api/types"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/api/types"
|
||||
)
|
||||
|
||||
// ImageID is a hash string representing a container image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue