fix: gracefully stop containers (#237)

- upgraded docker api dependencies to v23.0.1+incompatible
This commit is contained in:
anthonyvallone 2023-02-16 16:51:51 +11:00
parent 3b0aac2778
commit f17b338303
4 changed files with 11 additions and 8 deletions

View file

@ -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)

View file

@ -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