mirror of https://github.com/docker/cli.git
Compare commits
2 Commits
50601fe542
...
38b3e792fd
Author | SHA1 | Date |
---|---|---|
Sebastiaan van Stijn | 38b3e792fd | |
Sebastiaan van Stijn | 2958a27e0f |
|
@ -3,7 +3,7 @@ module github.com/docker/cli/docs/generate
|
||||||
// dummy go.mod to avoid dealing with dependencies specific
|
// dummy go.mod to avoid dealing with dependencies specific
|
||||||
// to docs generation and not really part of the project.
|
// to docs generation and not really part of the project.
|
||||||
|
|
||||||
go 1.16
|
go 1.22.0
|
||||||
|
|
||||||
//require (
|
//require (
|
||||||
// github.com/docker/cli v0.0.0+incompatible
|
// github.com/docker/cli v0.0.0+incompatible
|
||||||
|
|
|
@ -3,7 +3,7 @@ module github.com/docker/cli/man
|
||||||
// dummy go.mod to avoid dealing with dependencies specific
|
// dummy go.mod to avoid dealing with dependencies specific
|
||||||
// to manpages generation and not really part of the project.
|
// to manpages generation and not really part of the project.
|
||||||
|
|
||||||
go 1.16
|
go 1.22.0
|
||||||
|
|
||||||
//require (
|
//require (
|
||||||
// github.com/docker/cli v0.0.0+incompatible
|
// github.com/docker/cli v0.0.0+incompatible
|
||||||
|
|
|
@ -18,7 +18,7 @@ init() {
|
||||||
cat > go.mod <<EOL
|
cat > go.mod <<EOL
|
||||||
module github.com/docker/cli
|
module github.com/docker/cli
|
||||||
|
|
||||||
go 1.19
|
go 1.22.0
|
||||||
EOL
|
EOL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ module github.com/docker/cli
|
||||||
// There is no 'go.mod' file, as that would imply opting in for all the rules
|
// There is no 'go.mod' file, as that would imply opting in for all the rules
|
||||||
// around SemVer, which this repo cannot abide by as it uses CalVer.
|
// around SemVer, which this repo cannot abide by as it uses CalVer.
|
||||||
|
|
||||||
go 1.21.0
|
go 1.22.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
dario.cat/mergo v1.0.1
|
dario.cat/mergo v1.0.1
|
||||||
|
@ -13,7 +13,7 @@ require (
|
||||||
github.com/distribution/reference v0.6.0
|
github.com/distribution/reference v0.6.0
|
||||||
github.com/docker/cli-docs-tool v0.8.0
|
github.com/docker/cli-docs-tool v0.8.0
|
||||||
github.com/docker/distribution v2.8.3+incompatible
|
github.com/docker/distribution v2.8.3+incompatible
|
||||||
github.com/docker/docker v27.3.1+incompatible
|
github.com/docker/docker v27.3.2-0.20241108182542-b2c682be5f56+incompatible // v27.x branch (v27.4.0-dev)
|
||||||
github.com/docker/docker-credential-helpers v0.8.2
|
github.com/docker/docker-credential-helpers v0.8.2
|
||||||
github.com/docker/go-connections v0.5.0
|
github.com/docker/go-connections v0.5.0
|
||||||
github.com/docker/go-units v0.5.0
|
github.com/docker/go-units v0.5.0
|
||||||
|
|
|
@ -57,8 +57,8 @@ github.com/docker/cli-docs-tool v0.8.0/go.mod h1:8TQQ3E7mOXoYUs811LiPdUnAhXrcVsB
|
||||||
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||||
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
|
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
|
||||||
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||||
github.com/docker/docker v27.3.1+incompatible h1:KttF0XoteNTicmUtBO0L2tP+J7FGRFTjaEF4k6WdhfI=
|
github.com/docker/docker v27.3.2-0.20241108182542-b2c682be5f56+incompatible h1:eU/L2wtkE3wWBiqCk4QK4R8971eHeo3aI0caBNSfrmA=
|
||||||
github.com/docker/docker v27.3.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
github.com/docker/docker v27.3.2-0.20241108182542-b2c682be5f56+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||||
github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
|
github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
|
||||||
github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
|
github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
|
||||||
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
|
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
|
||||||
|
|
|
@ -7876,10 +7876,12 @@ paths:
|
||||||
type: "string"
|
type: "string"
|
||||||
- name: "h"
|
- name: "h"
|
||||||
in: "query"
|
in: "query"
|
||||||
|
required: true
|
||||||
description: "Height of the TTY session in characters"
|
description: "Height of the TTY session in characters"
|
||||||
type: "integer"
|
type: "integer"
|
||||||
- name: "w"
|
- name: "w"
|
||||||
in: "query"
|
in: "query"
|
||||||
|
required: true
|
||||||
description: "Width of the TTY session in characters"
|
description: "Width of the TTY session in characters"
|
||||||
type: "integer"
|
type: "integer"
|
||||||
tags: ["Container"]
|
tags: ["Container"]
|
||||||
|
@ -9244,6 +9246,19 @@ paths:
|
||||||
all tags of the given image that are present in the local image store
|
all tags of the given image that are present in the local image store
|
||||||
are pushed.
|
are pushed.
|
||||||
type: "string"
|
type: "string"
|
||||||
|
- name: "platform"
|
||||||
|
type: "string"
|
||||||
|
in: "query"
|
||||||
|
description: |
|
||||||
|
JSON-encoded OCI platform to select the platform-variant to push.
|
||||||
|
If not provided, all available variants will attempt to be pushed.
|
||||||
|
|
||||||
|
If the daemon provides a multi-platform image store, this selects
|
||||||
|
the platform-variant to push to the registry. If the image is
|
||||||
|
a single-platform image, or if the multi-platform image does not
|
||||||
|
provide a variant matching the given platform, an error is returned.
|
||||||
|
|
||||||
|
Example: `{"os": "linux", "architecture": "arm", "variant": "v5"}`
|
||||||
- name: "X-Registry-Auth"
|
- name: "X-Registry-Auth"
|
||||||
in: "header"
|
in: "header"
|
||||||
description: |
|
description: |
|
||||||
|
@ -9253,11 +9268,6 @@ paths:
|
||||||
details.
|
details.
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
- name: "platform"
|
|
||||||
in: "query"
|
|
||||||
description: "Select a platform-specific manifest to be pushed. OCI platform (JSON encoded)"
|
|
||||||
type: "string"
|
|
||||||
x-nullable: true
|
|
||||||
tags: ["Image"]
|
tags: ["Image"]
|
||||||
/images/{name}/tag:
|
/images/{name}/tag:
|
||||||
post:
|
post:
|
||||||
|
@ -10203,10 +10213,12 @@ paths:
|
||||||
type: "string"
|
type: "string"
|
||||||
- name: "h"
|
- name: "h"
|
||||||
in: "query"
|
in: "query"
|
||||||
|
required: true
|
||||||
description: "Height of the TTY session in characters"
|
description: "Height of the TTY session in characters"
|
||||||
type: "integer"
|
type: "integer"
|
||||||
- name: "w"
|
- name: "w"
|
||||||
in: "query"
|
in: "query"
|
||||||
|
required: true
|
||||||
description: "Width of the TTY session in characters"
|
description: "Width of the TTY session in characters"
|
||||||
type: "integer"
|
type: "integer"
|
||||||
tags: ["Exec"]
|
tags: ["Exec"]
|
||||||
|
|
|
@ -484,4 +484,6 @@ type BuildCachePruneOptions struct {
|
||||||
All bool
|
All bool
|
||||||
KeepStorage int64
|
KeepStorage int64
|
||||||
Filters filters.Args
|
Filters filters.Args
|
||||||
|
|
||||||
|
// FIXME(thaJeztah): add new options; see https://github.com/moby/moby/issues/48639
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Package client is a Go client for the Docker Engine API.
|
Package client is a Go client for the Docker Engine API.
|
||||||
|
|
||||||
For more information about the Engine API, see the documentation:
|
For more information about the Engine API, see the documentation:
|
||||||
https://docs.docker.com/engine/api/
|
https://docs.docker.com/reference/api/engine/
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
@ -247,6 +247,14 @@ func (cli *Client) tlsConfig() *tls.Config {
|
||||||
|
|
||||||
func defaultHTTPClient(hostURL *url.URL) (*http.Client, error) {
|
func defaultHTTPClient(hostURL *url.URL) (*http.Client, error) {
|
||||||
transport := &http.Transport{}
|
transport := &http.Transport{}
|
||||||
|
// Necessary to prevent long-lived processes using the
|
||||||
|
// client from leaking connections due to idle connections
|
||||||
|
// not being released.
|
||||||
|
// TODO: see if we can also address this from the server side,
|
||||||
|
// or in go-connections.
|
||||||
|
// see: https://github.com/moby/moby/issues/45539
|
||||||
|
transport.MaxIdleConns = 6
|
||||||
|
transport.IdleConnTimeout = 30 * time.Second
|
||||||
err := sockets.ConfigureTransport(transport, hostURL.Scheme, hostURL.Host)
|
err := sockets.ConfigureTransport(transport, hostURL.Scheme, hostURL.Host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -55,7 +55,7 @@ github.com/docker/distribution/registry/client/transport
|
||||||
github.com/docker/distribution/registry/storage/cache
|
github.com/docker/distribution/registry/storage/cache
|
||||||
github.com/docker/distribution/registry/storage/cache/memory
|
github.com/docker/distribution/registry/storage/cache/memory
|
||||||
github.com/docker/distribution/uuid
|
github.com/docker/distribution/uuid
|
||||||
# github.com/docker/docker v27.3.1+incompatible
|
# github.com/docker/docker v27.3.2-0.20241108182542-b2c682be5f56+incompatible
|
||||||
## explicit
|
## explicit
|
||||||
github.com/docker/docker/api
|
github.com/docker/docker/api
|
||||||
github.com/docker/docker/api/types
|
github.com/docker/docker/api/types
|
||||||
|
|
Loading…
Reference in New Issue