mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-28 08:27:42 +08:00
Merge pull request #3008 from thaJeztah/bump_engine_28.0_rc3
vendor: github.com/docker/docker, docker/cli v28.0.0-rc.3
This commit is contained in:
commit
7762ab2c38
4
go.mod
4
go.mod
@ -17,9 +17,9 @@ require (
|
||||
github.com/creack/pty v1.1.24
|
||||
github.com/davecgh/go-spew v1.1.1
|
||||
github.com/distribution/reference v0.6.0
|
||||
github.com/docker/cli v28.0.0-rc.2+incompatible
|
||||
github.com/docker/cli v28.0.0-rc.3+incompatible
|
||||
github.com/docker/cli-docs-tool v0.9.0
|
||||
github.com/docker/docker v28.0.0-rc.2+incompatible
|
||||
github.com/docker/docker v28.0.0-rc.3+incompatible
|
||||
github.com/docker/go-units v0.5.0
|
||||
github.com/gofrs/flock v0.12.1
|
||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
||||
|
8
go.sum
8
go.sum
@ -122,15 +122,15 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
|
||||
github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
|
||||
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
|
||||
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
|
||||
github.com/docker/cli v28.0.0-rc.2+incompatible h1:2N1dpr3qtlJwIQpqXm7oNwWNAUGzpKlsCeJ32ejvpTk=
|
||||
github.com/docker/cli v28.0.0-rc.2+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||
github.com/docker/cli v28.0.0-rc.3+incompatible h1:OnM9p+c9Gxw8JQhfeoj9TbIC0VQ8elqOYA2J2nJ8r3w=
|
||||
github.com/docker/cli v28.0.0-rc.3+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
|
||||
github.com/docker/cli-docs-tool v0.9.0 h1:CVwQbE+ZziwlPqrJ7LRyUF6GvCA+6gj7MTCsayaK9t0=
|
||||
github.com/docker/cli-docs-tool v0.9.0/go.mod h1:ClrwlNW+UioiRyH9GiAOe1o3J/TsY3Tr1ipoypjAUtc=
|
||||
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/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||
github.com/docker/docker v28.0.0-rc.2+incompatible h1:p+Ri+C0mmbPkhYVD9Sxnp/TnNnZoQWEj/EwOC465Uq4=
|
||||
github.com/docker/docker v28.0.0-rc.2+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/docker/docker v28.0.0-rc.3+incompatible h1:A7wYJ4FR0qJS38LEwHAxdq7hWFP1BZw72hVVMDaHEOc=
|
||||
github.com/docker/docker v28.0.0-rc.3+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/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
|
||||
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
|
||||
|
2
vendor/github.com/docker/cli/cli-plugins/manager/manager.go
generated
vendored
2
vendor/github.com/docker/cli/cli-plugins/manager/manager.go
generated
vendored
@ -32,7 +32,7 @@ const (
|
||||
// errPluginNotFound is the error returned when a plugin could not be found.
|
||||
type errPluginNotFound string
|
||||
|
||||
func (e errPluginNotFound) NotFound() {}
|
||||
func (errPluginNotFound) NotFound() {}
|
||||
|
||||
func (e errPluginNotFound) Error() string {
|
||||
return "Error: No such CLI plugin: " + string(e)
|
||||
|
4
vendor/github.com/docker/cli/cli/cobra.go
generated
vendored
4
vendor/github.com/docker/cli/cli/cobra.go
generated
vendored
@ -337,8 +337,10 @@ func operationSubCommands(cmd *cobra.Command) []*cobra.Command {
|
||||
return cmds
|
||||
}
|
||||
|
||||
const defaultTermWidth = 80
|
||||
|
||||
func wrappedFlagUsages(cmd *cobra.Command) string {
|
||||
width := 80
|
||||
width := defaultTermWidth
|
||||
if ws, err := term.GetWinsize(0); err == nil {
|
||||
width = int(ws.Width)
|
||||
}
|
||||
|
4
vendor/github.com/docker/cli/cli/command/cli.go
generated
vendored
4
vendor/github.com/docker/cli/cli/command/cli.go
generated
vendored
@ -97,7 +97,7 @@ type DockerCli struct {
|
||||
}
|
||||
|
||||
// DefaultVersion returns api.defaultVersion.
|
||||
func (cli *DockerCli) DefaultVersion() string {
|
||||
func (*DockerCli) DefaultVersion() string {
|
||||
return api.DefaultVersion
|
||||
}
|
||||
|
||||
@ -231,7 +231,7 @@ func (cli *DockerCli) HooksEnabled() bool {
|
||||
}
|
||||
|
||||
// ManifestStore returns a store for local manifests
|
||||
func (cli *DockerCli) ManifestStore() manifeststore.Store {
|
||||
func (*DockerCli) ManifestStore() manifeststore.Store {
|
||||
// TODO: support override default location from config file
|
||||
return manifeststore.NewStore(filepath.Join(config.Dir(), "manifests"))
|
||||
}
|
||||
|
15
vendor/github.com/docker/cli/cli/command/cli_options.go
generated
vendored
15
vendor/github.com/docker/cli/cli/command/cli_options.go
generated
vendored
@ -177,7 +177,10 @@ func withCustomHeadersFromEnv() client.Opt {
|
||||
csvReader := csv.NewReader(strings.NewReader(value))
|
||||
fields, err := csvReader.Read()
|
||||
if err != nil {
|
||||
return errdefs.InvalidParameter(errors.Errorf("failed to parse custom headers from %s environment variable: value must be formatted as comma-separated key=value pairs", envOverrideHTTPHeaders))
|
||||
return errdefs.InvalidParameter(errors.Errorf(
|
||||
"failed to parse custom headers from %s environment variable: value must be formatted as comma-separated key=value pairs",
|
||||
envOverrideHTTPHeaders,
|
||||
))
|
||||
}
|
||||
if len(fields) == 0 {
|
||||
return nil
|
||||
@ -191,7 +194,10 @@ func withCustomHeadersFromEnv() client.Opt {
|
||||
k = strings.TrimSpace(k)
|
||||
|
||||
if k == "" {
|
||||
return errdefs.InvalidParameter(errors.Errorf(`failed to set custom headers from %s environment variable: value contains a key=value pair with an empty key: '%s'`, envOverrideHTTPHeaders, kv))
|
||||
return errdefs.InvalidParameter(errors.Errorf(
|
||||
`failed to set custom headers from %s environment variable: value contains a key=value pair with an empty key: '%s'`,
|
||||
envOverrideHTTPHeaders, kv,
|
||||
))
|
||||
}
|
||||
|
||||
// We don't currently allow empty key=value pairs, and produce an error.
|
||||
@ -199,7 +205,10 @@ func withCustomHeadersFromEnv() client.Opt {
|
||||
// from an environment variable with the same name). In the meantime,
|
||||
// produce an error to prevent users from depending on this.
|
||||
if !hasValue {
|
||||
return errdefs.InvalidParameter(errors.Errorf(`failed to set custom headers from %s environment variable: missing "=" in key=value pair: '%s'`, envOverrideHTTPHeaders, kv))
|
||||
return errdefs.InvalidParameter(errors.Errorf(
|
||||
`failed to set custom headers from %s environment variable: missing "=" in key=value pair: '%s'`,
|
||||
envOverrideHTTPHeaders, kv,
|
||||
))
|
||||
}
|
||||
|
||||
env[http.CanonicalHeaderKey(k)] = v
|
||||
|
2
vendor/github.com/docker/cli/cli/command/formatter/custom.go
generated
vendored
2
vendor/github.com/docker/cli/cli/command/formatter/custom.go
generated
vendored
@ -32,7 +32,7 @@ type SubContext interface {
|
||||
type SubHeaderContext map[string]string
|
||||
|
||||
// Label returns the header label for the specified string
|
||||
func (c SubHeaderContext) Label(name string) string {
|
||||
func (SubHeaderContext) Label(name string) string {
|
||||
n := strings.Split(name, ".")
|
||||
r := strings.NewReplacer("-", " ", "_", " ")
|
||||
h := r.Replace(n[len(n)-1])
|
||||
|
10
vendor/github.com/docker/cli/cli/command/formatter/disk_usage.go
generated
vendored
10
vendor/github.com/docker/cli/cli/command/formatter/disk_usage.go
generated
vendored
@ -270,7 +270,7 @@ func (c *diskUsageImagesContext) MarshalJSON() ([]byte, error) {
|
||||
return MarshalJSON(c)
|
||||
}
|
||||
|
||||
func (c *diskUsageImagesContext) Type() string {
|
||||
func (*diskUsageImagesContext) Type() string {
|
||||
return "Images"
|
||||
}
|
||||
|
||||
@ -321,7 +321,7 @@ func (c *diskUsageContainersContext) MarshalJSON() ([]byte, error) {
|
||||
return MarshalJSON(c)
|
||||
}
|
||||
|
||||
func (c *diskUsageContainersContext) Type() string {
|
||||
func (*diskUsageContainersContext) Type() string {
|
||||
return "Containers"
|
||||
}
|
||||
|
||||
@ -329,7 +329,7 @@ func (c *diskUsageContainersContext) TotalCount() string {
|
||||
return strconv.Itoa(len(c.containers))
|
||||
}
|
||||
|
||||
func (c *diskUsageContainersContext) isActive(ctr container.Summary) bool {
|
||||
func (*diskUsageContainersContext) isActive(ctr container.Summary) bool {
|
||||
return strings.Contains(ctr.State, "running") ||
|
||||
strings.Contains(ctr.State, "paused") ||
|
||||
strings.Contains(ctr.State, "restarting")
|
||||
@ -382,7 +382,7 @@ func (c *diskUsageVolumesContext) MarshalJSON() ([]byte, error) {
|
||||
return MarshalJSON(c)
|
||||
}
|
||||
|
||||
func (c *diskUsageVolumesContext) Type() string {
|
||||
func (*diskUsageVolumesContext) Type() string {
|
||||
return "Local Volumes"
|
||||
}
|
||||
|
||||
@ -443,7 +443,7 @@ func (c *diskUsageBuilderContext) MarshalJSON() ([]byte, error) {
|
||||
return MarshalJSON(c)
|
||||
}
|
||||
|
||||
func (c *diskUsageBuilderContext) Type() string {
|
||||
func (*diskUsageBuilderContext) Type() string {
|
||||
return "Build Cache"
|
||||
}
|
||||
|
||||
|
4
vendor/github.com/docker/cli/cli/command/telemetry.go
generated
vendored
4
vendor/github.com/docker/cli/cli/command/telemetry.go
generated
vendored
@ -54,11 +54,11 @@ func (cli *DockerCli) Resource() *resource.Resource {
|
||||
return cli.res.Get()
|
||||
}
|
||||
|
||||
func (cli *DockerCli) TracerProvider() trace.TracerProvider {
|
||||
func (*DockerCli) TracerProvider() trace.TracerProvider {
|
||||
return otel.GetTracerProvider()
|
||||
}
|
||||
|
||||
func (cli *DockerCli) MeterProvider() metric.MeterProvider {
|
||||
func (*DockerCli) MeterProvider() metric.MeterProvider {
|
||||
return otel.GetMeterProvider()
|
||||
}
|
||||
|
||||
|
6
vendor/github.com/docker/cli/cli/connhelper/commandconn/commandconn.go
generated
vendored
6
vendor/github.com/docker/cli/cli/connhelper/commandconn/commandconn.go
generated
vendored
@ -253,17 +253,17 @@ func (c *commandConn) RemoteAddr() net.Addr {
|
||||
return c.remoteAddr
|
||||
}
|
||||
|
||||
func (c *commandConn) SetDeadline(t time.Time) error {
|
||||
func (*commandConn) SetDeadline(t time.Time) error {
|
||||
logrus.Debugf("unimplemented call: SetDeadline(%v)", t)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *commandConn) SetReadDeadline(t time.Time) error {
|
||||
func (*commandConn) SetReadDeadline(t time.Time) error {
|
||||
logrus.Debugf("unimplemented call: SetReadDeadline(%v)", t)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *commandConn) SetWriteDeadline(t time.Time) error {
|
||||
func (*commandConn) SetWriteDeadline(t time.Time) error {
|
||||
logrus.Debugf("unimplemented call: SetWriteDeadline(%v)", t)
|
||||
return nil
|
||||
}
|
||||
|
4
vendor/github.com/docker/cli/cli/debug/debug.go
generated
vendored
4
vendor/github.com/docker/cli/cli/debug/debug.go
generated
vendored
@ -10,14 +10,14 @@ import (
|
||||
// Enable sets the DEBUG env var to true
|
||||
// and makes the logger to log at debug level.
|
||||
func Enable() {
|
||||
os.Setenv("DEBUG", "1")
|
||||
_ = os.Setenv("DEBUG", "1")
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
}
|
||||
|
||||
// Disable sets the DEBUG env var to false
|
||||
// and makes the logger to log at info level.
|
||||
func Disable() {
|
||||
os.Setenv("DEBUG", "")
|
||||
_ = os.Setenv("DEBUG", "")
|
||||
logrus.SetLevel(logrus.InfoLevel)
|
||||
}
|
||||
|
||||
|
4
vendor/github.com/docker/cli/cli/manifest/store/store.go
generated
vendored
4
vendor/github.com/docker/cli/cli/manifest/store/store.go
generated
vendored
@ -44,7 +44,7 @@ func (s *fsStore) Get(listRef reference.Reference, manifest reference.Reference)
|
||||
return s.getFromFilename(manifest, filename)
|
||||
}
|
||||
|
||||
func (s *fsStore) getFromFilename(ref reference.Reference, filename string) (types.ImageManifest, error) {
|
||||
func (*fsStore) getFromFilename(ref reference.Reference, filename string) (types.ImageManifest, error) {
|
||||
bytes, err := os.ReadFile(filename)
|
||||
switch {
|
||||
case os.IsNotExist(err):
|
||||
@ -165,7 +165,7 @@ func (n *notFoundError) Error() string {
|
||||
}
|
||||
|
||||
// NotFound interface
|
||||
func (n *notFoundError) NotFound() {}
|
||||
func (*notFoundError) NotFound() {}
|
||||
|
||||
// IsNotFound returns true if the error is a not found error
|
||||
func IsNotFound(err error) bool {
|
||||
|
2
vendor/github.com/docker/cli/cli/registry/client/endpoint.go
generated
vendored
2
vendor/github.com/docker/cli/cli/registry/client/endpoint.go
generated
vendored
@ -123,6 +123,6 @@ func (th *existingTokenHandler) AuthorizeRequest(req *http.Request, _ map[string
|
||||
return nil
|
||||
}
|
||||
|
||||
func (th *existingTokenHandler) Scheme() string {
|
||||
func (*existingTokenHandler) Scheme() string {
|
||||
return "bearer"
|
||||
}
|
||||
|
2
vendor/github.com/docker/cli/cli/registry/client/fetcher.go
generated
vendored
2
vendor/github.com/docker/cli/cli/registry/client/fetcher.go
generated
vendored
@ -304,4 +304,4 @@ func (n *notFoundError) Error() string {
|
||||
}
|
||||
|
||||
// NotFound satisfies interface github.com/docker/docker/errdefs.ErrNotFound
|
||||
func (n *notFoundError) NotFound() {}
|
||||
func (notFoundError) NotFound() {}
|
||||
|
2
vendor/github.com/docker/cli/cli/trust/trust.go
generated
vendored
2
vendor/github.com/docker/cli/cli/trust/trust.go
generated
vendored
@ -89,7 +89,7 @@ func (scs simpleCredentialStore) RefreshToken(*url.URL, string) string {
|
||||
return scs.auth.IdentityToken
|
||||
}
|
||||
|
||||
func (scs simpleCredentialStore) SetRefreshToken(*url.URL, string, string) {}
|
||||
func (simpleCredentialStore) SetRefreshToken(*url.URL, string, string) {}
|
||||
|
||||
// GetNotaryRepository returns a NotaryRepository which stores all the
|
||||
// information needed to operate on a notary repository.
|
||||
|
4
vendor/github.com/docker/cli/internal/tui/colors.go
generated
vendored
4
vendor/github.com/docker/cli/internal/tui/colors.go
generated
vendored
@ -24,10 +24,10 @@ func (a noColor) With(_ ...aec.ANSI) aec.ANSI {
|
||||
return a
|
||||
}
|
||||
|
||||
func (a noColor) Apply(s string) string {
|
||||
func (noColor) Apply(s string) string {
|
||||
return s
|
||||
}
|
||||
|
||||
func (a noColor) String() string {
|
||||
func (noColor) String() string {
|
||||
return ""
|
||||
}
|
||||
|
2
vendor/github.com/docker/cli/opts/config.go
generated
vendored
2
vendor/github.com/docker/cli/opts/config.go
generated
vendored
@ -80,7 +80,7 @@ func (o *ConfigOpt) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (o *ConfigOpt) Type() string {
|
||||
func (*ConfigOpt) Type() string {
|
||||
return "config"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/duration.go
generated
vendored
2
vendor/github.com/docker/cli/opts/duration.go
generated
vendored
@ -46,7 +46,7 @@ func (d *DurationOpt) Set(s string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option, which will be displayed in `--help` output
|
||||
func (d *DurationOpt) Type() string {
|
||||
func (*DurationOpt) Type() string {
|
||||
return "duration"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/gpus.go
generated
vendored
2
vendor/github.com/docker/cli/opts/gpus.go
generated
vendored
@ -92,7 +92,7 @@ func (o *GpuOpts) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (o *GpuOpts) Type() string {
|
||||
func (*GpuOpts) Type() string {
|
||||
return "gpu-request"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/mount.go
generated
vendored
2
vendor/github.com/docker/cli/opts/mount.go
generated
vendored
@ -215,7 +215,7 @@ func (m *MountOpt) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (m *MountOpt) Type() string {
|
||||
func (*MountOpt) Type() string {
|
||||
return "mount"
|
||||
}
|
||||
|
||||
|
4
vendor/github.com/docker/cli/opts/network.go
generated
vendored
4
vendor/github.com/docker/cli/opts/network.go
generated
vendored
@ -106,7 +106,7 @@ func (n *NetworkOpt) Set(value string) error { //nolint:gocyclo
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (n *NetworkOpt) Type() string {
|
||||
func (*NetworkOpt) Type() string {
|
||||
return "network"
|
||||
}
|
||||
|
||||
@ -116,7 +116,7 @@ func (n *NetworkOpt) Value() []NetworkAttachmentOpts {
|
||||
}
|
||||
|
||||
// String returns the network opts as a string
|
||||
func (n *NetworkOpt) String() string {
|
||||
func (*NetworkOpt) String() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
12
vendor/github.com/docker/cli/opts/opts.go
generated
vendored
12
vendor/github.com/docker/cli/opts/opts.go
generated
vendored
@ -110,7 +110,7 @@ func (opts *ListOpts) Len() int {
|
||||
}
|
||||
|
||||
// Type returns a string name for this Option type
|
||||
func (opts *ListOpts) Type() string {
|
||||
func (*ListOpts) Type() string {
|
||||
return "list"
|
||||
}
|
||||
|
||||
@ -180,7 +180,7 @@ func (opts *MapOpts) String() string {
|
||||
}
|
||||
|
||||
// Type returns a string name for this Option type
|
||||
func (opts *MapOpts) Type() string {
|
||||
func (*MapOpts) Type() string {
|
||||
return "map"
|
||||
}
|
||||
|
||||
@ -358,7 +358,7 @@ func (o *FilterOpt) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the option type
|
||||
func (o *FilterOpt) Type() string {
|
||||
func (*FilterOpt) Type() string {
|
||||
return "filter"
|
||||
}
|
||||
|
||||
@ -386,7 +386,7 @@ func (c *NanoCPUs) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type
|
||||
func (c *NanoCPUs) Type() string {
|
||||
func (*NanoCPUs) Type() string {
|
||||
return "decimal"
|
||||
}
|
||||
|
||||
@ -463,7 +463,7 @@ func (m *MemBytes) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type
|
||||
func (m *MemBytes) Type() string {
|
||||
func (*MemBytes) Type() string {
|
||||
return "bytes"
|
||||
}
|
||||
|
||||
@ -498,7 +498,7 @@ func (m *MemSwapBytes) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type
|
||||
func (m *MemSwapBytes) Type() string {
|
||||
func (*MemSwapBytes) Type() string {
|
||||
return "bytes"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/port.go
generated
vendored
2
vendor/github.com/docker/cli/opts/port.go
generated
vendored
@ -121,7 +121,7 @@ func (p *PortOpt) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (p *PortOpt) Type() string {
|
||||
func (*PortOpt) Type() string {
|
||||
return "port"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/quotedstring.go
generated
vendored
2
vendor/github.com/docker/cli/opts/quotedstring.go
generated
vendored
@ -13,7 +13,7 @@ func (s *QuotedString) Set(val string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of the value
|
||||
func (s *QuotedString) Type() string {
|
||||
func (*QuotedString) Type() string {
|
||||
return "string"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/secret.go
generated
vendored
2
vendor/github.com/docker/cli/opts/secret.go
generated
vendored
@ -79,7 +79,7 @@ func (o *SecretOpt) Set(value string) error {
|
||||
}
|
||||
|
||||
// Type returns the type of this option
|
||||
func (o *SecretOpt) Type() string {
|
||||
func (*SecretOpt) Type() string {
|
||||
return "secret"
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/docker/cli/opts/throttledevice.go
generated
vendored
2
vendor/github.com/docker/cli/opts/throttledevice.go
generated
vendored
@ -100,6 +100,6 @@ func (opt *ThrottledeviceOpt) GetList() []*blkiodev.ThrottleDevice {
|
||||
}
|
||||
|
||||
// Type returns the option type
|
||||
func (opt *ThrottledeviceOpt) Type() string {
|
||||
func (*ThrottledeviceOpt) Type() string {
|
||||
return "list"
|
||||
}
|
||||
|
2
vendor/github.com/docker/cli/opts/ulimit.go
generated
vendored
2
vendor/github.com/docker/cli/opts/ulimit.go
generated
vendored
@ -58,6 +58,6 @@ func (o *UlimitOpt) GetList() []*container.Ulimit {
|
||||
}
|
||||
|
||||
// Type returns the option type
|
||||
func (o *UlimitOpt) Type() string {
|
||||
func (*UlimitOpt) Type() string {
|
||||
return "ulimit"
|
||||
}
|
||||
|
2
vendor/github.com/docker/cli/opts/weightdevice.go
generated
vendored
2
vendor/github.com/docker/cli/opts/weightdevice.go
generated
vendored
@ -79,6 +79,6 @@ func (opt *WeightdeviceOpt) GetList() []*blkiodev.WeightDevice {
|
||||
}
|
||||
|
||||
// Type returns the option type
|
||||
func (opt *WeightdeviceOpt) Type() string {
|
||||
func (*WeightdeviceOpt) Type() string {
|
||||
return "list"
|
||||
}
|
||||
|
784
vendor/github.com/docker/docker/api/swagger.yaml
generated
vendored
784
vendor/github.com/docker/docker/api/swagger.yaml
generated
vendored
@ -965,13 +965,18 @@ definitions:
|
||||
ContainerIDFile:
|
||||
type: "string"
|
||||
description: "Path to a file where the container ID is written"
|
||||
example: ""
|
||||
LogConfig:
|
||||
type: "object"
|
||||
description: "The logging configuration for this container"
|
||||
properties:
|
||||
Type:
|
||||
description: |-
|
||||
Name of the logging driver used for the container or "none"
|
||||
if logging is disabled.
|
||||
type: "string"
|
||||
enum:
|
||||
- "local"
|
||||
- "json-file"
|
||||
- "syslog"
|
||||
- "journald"
|
||||
@ -982,9 +987,14 @@ definitions:
|
||||
- "etwlogs"
|
||||
- "none"
|
||||
Config:
|
||||
description: |-
|
||||
Driver-specific configuration options for the logging driver.
|
||||
type: "object"
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
"max-file": "5"
|
||||
"max-size": "10m"
|
||||
NetworkMode:
|
||||
type: "string"
|
||||
description: |
|
||||
@ -1027,6 +1037,7 @@ definitions:
|
||||
items:
|
||||
type: "integer"
|
||||
minimum: 0
|
||||
example: [80, 64]
|
||||
Annotations:
|
||||
type: "object"
|
||||
description: |
|
||||
@ -1129,7 +1140,8 @@ definitions:
|
||||
- `"host"`: use the host's PID namespace inside the container
|
||||
Privileged:
|
||||
type: "boolean"
|
||||
description: "Gives the container full access to the host."
|
||||
description: |-
|
||||
Gives the container full access to the host.
|
||||
PublishAllPorts:
|
||||
type: "boolean"
|
||||
description: |
|
||||
@ -1186,18 +1198,20 @@ definitions:
|
||||
minimum: 0
|
||||
Sysctls:
|
||||
type: "object"
|
||||
description: |
|
||||
x-nullable: true
|
||||
description: |-
|
||||
A list of kernel parameters (sysctls) to set in the container.
|
||||
For example:
|
||||
|
||||
```
|
||||
{"net.ipv4.ip_forward": "1"}
|
||||
```
|
||||
This field is omitted if not set.
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
"net.ipv4.ip_forward": "1"
|
||||
Runtime:
|
||||
type: "string"
|
||||
description: "Runtime to use with this container."
|
||||
x-nullable: true
|
||||
description: |-
|
||||
Runtime to use with this container.
|
||||
# Applicable to Windows
|
||||
Isolation:
|
||||
type: "string"
|
||||
@ -1215,6 +1229,18 @@ definitions:
|
||||
the default set of paths).
|
||||
items:
|
||||
type: "string"
|
||||
example:
|
||||
- "/proc/asound"
|
||||
- "/proc/acpi"
|
||||
- "/proc/kcore"
|
||||
- "/proc/keys"
|
||||
- "/proc/latency_stats"
|
||||
- "/proc/timer_list"
|
||||
- "/proc/timer_stats"
|
||||
- "/proc/sched_debug"
|
||||
- "/proc/scsi"
|
||||
- "/sys/firmware"
|
||||
- "/sys/devices/virtual/powercap"
|
||||
ReadonlyPaths:
|
||||
type: "array"
|
||||
description: |
|
||||
@ -1222,6 +1248,12 @@ definitions:
|
||||
(this overrides the default set of paths).
|
||||
items:
|
||||
type: "string"
|
||||
example:
|
||||
- "/proc/bus"
|
||||
- "/proc/fs"
|
||||
- "/proc/irq"
|
||||
- "/proc/sys"
|
||||
- "/proc/sysrq-trigger"
|
||||
|
||||
ContainerConfig:
|
||||
description: |
|
||||
@ -1238,8 +1270,14 @@ definitions:
|
||||
The domain name to use for the container.
|
||||
type: "string"
|
||||
User:
|
||||
description: "The user that commands are run as inside the container."
|
||||
description: |-
|
||||
Commands run as this user inside the container. If omitted, commands
|
||||
run as the user specified in the image the container was started from.
|
||||
|
||||
Can be either user-name or UID, and optional group-name or GID,
|
||||
separated by a colon (`<user-name|UID>[<:group-name|GID>]`).
|
||||
type: "string"
|
||||
example: "123:456"
|
||||
AttachStdin:
|
||||
description: "Whether to attach to `stdin`."
|
||||
type: "boolean"
|
||||
@ -5091,24 +5129,226 @@ definitions:
|
||||
Warnings:
|
||||
- "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
|
||||
|
||||
ContainerInspectResponse:
|
||||
type: "object"
|
||||
title: "ContainerInspectResponse"
|
||||
x-go-name: "InspectResponse"
|
||||
properties:
|
||||
Id:
|
||||
description: |-
|
||||
The ID of this container as a 128-bit (64-character) hexadecimal string (32 bytes).
|
||||
type: "string"
|
||||
x-go-name: "ID"
|
||||
minLength: 64
|
||||
maxLength: 64
|
||||
pattern: "^[0-9a-fA-F]{64}$"
|
||||
example: "aa86eacfb3b3ed4cd362c1e88fc89a53908ad05fb3a4103bca3f9b28292d14bf"
|
||||
Created:
|
||||
description: |-
|
||||
Date and time at which the container was created, formatted in
|
||||
[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
|
||||
type: "string"
|
||||
format: "dateTime"
|
||||
x-nullable: true
|
||||
example: "2025-02-17T17:43:39.64001363Z"
|
||||
Path:
|
||||
description: |-
|
||||
The path to the command being run
|
||||
type: "string"
|
||||
example: "/bin/sh"
|
||||
Args:
|
||||
description: "The arguments to the command being run"
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
example:
|
||||
- "-c"
|
||||
- "exit 9"
|
||||
State:
|
||||
$ref: "#/definitions/ContainerState"
|
||||
Image:
|
||||
description: |-
|
||||
The ID (digest) of the image that this container was created from.
|
||||
type: "string"
|
||||
example: "sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782"
|
||||
ResolvConfPath:
|
||||
description: |-
|
||||
Location of the `/etc/resolv.conf` generated for the container on the
|
||||
host.
|
||||
|
||||
This file is managed through the docker daemon, and should not be
|
||||
accessed or modified by other tools.
|
||||
type: "string"
|
||||
example: "/var/lib/docker/containers/aa86eacfb3b3ed4cd362c1e88fc89a53908ad05fb3a4103bca3f9b28292d14bf/resolv.conf"
|
||||
HostnamePath:
|
||||
description: |-
|
||||
Location of the `/etc/hostname` generated for the container on the
|
||||
host.
|
||||
|
||||
This file is managed through the docker daemon, and should not be
|
||||
accessed or modified by other tools.
|
||||
type: "string"
|
||||
example: "/var/lib/docker/containers/aa86eacfb3b3ed4cd362c1e88fc89a53908ad05fb3a4103bca3f9b28292d14bf/hostname"
|
||||
HostsPath:
|
||||
description: |-
|
||||
Location of the `/etc/hosts` generated for the container on the
|
||||
host.
|
||||
|
||||
This file is managed through the docker daemon, and should not be
|
||||
accessed or modified by other tools.
|
||||
type: "string"
|
||||
example: "/var/lib/docker/containers/aa86eacfb3b3ed4cd362c1e88fc89a53908ad05fb3a4103bca3f9b28292d14bf/hosts"
|
||||
LogPath:
|
||||
description: |-
|
||||
Location of the file used to buffer the container's logs. Depending on
|
||||
the logging-driver used for the container, this field may be omitted.
|
||||
|
||||
This file is managed through the docker daemon, and should not be
|
||||
accessed or modified by other tools.
|
||||
type: "string"
|
||||
x-nullable: true
|
||||
example: "/var/lib/docker/containers/5b7c7e2b992aa426584ce6c47452756066be0e503a08b4516a433a54d2f69e59/5b7c7e2b992aa426584ce6c47452756066be0e503a08b4516a433a54d2f69e59-json.log"
|
||||
Name:
|
||||
description: |-
|
||||
The name associated with this container.
|
||||
|
||||
For historic reasons, the name may be prefixed with a forward-slash (`/`).
|
||||
type: "string"
|
||||
example: "/funny_chatelet"
|
||||
RestartCount:
|
||||
description: |-
|
||||
Number of times the container was restarted since it was created,
|
||||
or since daemon was started.
|
||||
type: "integer"
|
||||
example: 0
|
||||
Driver:
|
||||
description: |-
|
||||
The storage-driver used for the container's filesystem (graph-driver
|
||||
or snapshotter).
|
||||
type: "string"
|
||||
example: "overlayfs"
|
||||
Platform:
|
||||
description: |-
|
||||
The platform (operating system) for which the container was created.
|
||||
|
||||
This field was introduced for the experimental "LCOW" (Linux Containers
|
||||
On Windows) features, which has been removed. In most cases, this field
|
||||
is equal to the host's operating system (`linux` or `windows`).
|
||||
type: "string"
|
||||
example: "linux"
|
||||
ImageManifestDescriptor:
|
||||
$ref: "#/definitions/OCIDescriptor"
|
||||
description: |-
|
||||
OCI descriptor of the platform-specific manifest of the image
|
||||
the container was created from.
|
||||
|
||||
Note: Only available if the daemon provides a multi-platform
|
||||
image store.
|
||||
MountLabel:
|
||||
description: |-
|
||||
SELinux mount label set for the container.
|
||||
type: "string"
|
||||
example: ""
|
||||
ProcessLabel:
|
||||
description: |-
|
||||
SELinux process label set for the container.
|
||||
type: "string"
|
||||
example: ""
|
||||
AppArmorProfile:
|
||||
description: |-
|
||||
The AppArmor profile set for the container.
|
||||
type: "string"
|
||||
example: ""
|
||||
ExecIDs:
|
||||
description: |-
|
||||
IDs of exec instances that are running in the container.
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
x-nullable: true
|
||||
example:
|
||||
- "b35395de42bc8abd327f9dd65d913b9ba28c74d2f0734eeeae84fa1c616a0fca"
|
||||
- "3fc1232e5cd20c8de182ed81178503dc6437f4e7ef12b52cc5e8de020652f1c4"
|
||||
HostConfig:
|
||||
$ref: "#/definitions/HostConfig"
|
||||
GraphDriver:
|
||||
$ref: "#/definitions/DriverData"
|
||||
SizeRw:
|
||||
description: |-
|
||||
The size of files that have been created or changed by this container.
|
||||
|
||||
This field is omitted by default, and only set when size is requested
|
||||
in the API request.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
x-nullable: true
|
||||
example: "122880"
|
||||
SizeRootFs:
|
||||
description: |-
|
||||
The total size of all files in the read-only layers from the image
|
||||
that the container uses. These layers can be shared between containers.
|
||||
|
||||
This field is omitted by default, and only set when size is requested
|
||||
in the API request.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
x-nullable: true
|
||||
example: "1653948416"
|
||||
Mounts:
|
||||
description: |-
|
||||
List of mounts used by the container.
|
||||
type: "array"
|
||||
items:
|
||||
$ref: "#/definitions/MountPoint"
|
||||
Config:
|
||||
$ref: "#/definitions/ContainerConfig"
|
||||
NetworkSettings:
|
||||
$ref: "#/definitions/NetworkSettings"
|
||||
|
||||
ContainerSummary:
|
||||
type: "object"
|
||||
properties:
|
||||
Id:
|
||||
description: "The ID of this container"
|
||||
description: |-
|
||||
The ID of this container as a 128-bit (64-character) hexadecimal string (32 bytes).
|
||||
type: "string"
|
||||
x-go-name: "ID"
|
||||
minLength: 64
|
||||
maxLength: 64
|
||||
pattern: "^[0-9a-fA-F]{64}$"
|
||||
example: "aa86eacfb3b3ed4cd362c1e88fc89a53908ad05fb3a4103bca3f9b28292d14bf"
|
||||
Names:
|
||||
description: "The names that this container has been given"
|
||||
description: |-
|
||||
The names associated with this container. Most containers have a single
|
||||
name, but when using legacy "links", the container can have multiple
|
||||
names.
|
||||
|
||||
For historic reasons, names are prefixed with a forward-slash (`/`).
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
example:
|
||||
- "/funny_chatelet"
|
||||
Image:
|
||||
description: "The name of the image used when creating this container"
|
||||
description: |-
|
||||
The name or ID of the image used to create the container.
|
||||
|
||||
This field shows the image reference as was specified when creating the container,
|
||||
which can be in its canonical form (e.g., `docker.io/library/ubuntu:latest`
|
||||
or `docker.io/library/ubuntu@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782`),
|
||||
short form (e.g., `ubuntu:latest`)), or the ID(-prefix) of the image (e.g., `72297848456d`).
|
||||
|
||||
The content of this field can be updated at runtime if the image used to
|
||||
create the container is untagged, in which case the field is updated to
|
||||
contain the the image ID (digest) it was resolved to in its canonical,
|
||||
non-truncated form (e.g., `sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782`).
|
||||
type: "string"
|
||||
example: "docker.io/library/ubuntu:latest"
|
||||
ImageID:
|
||||
description: "The ID of the image that this container was created from"
|
||||
description: |-
|
||||
The ID (digest) of the image that this container was created from.
|
||||
type: "string"
|
||||
example: "sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782"
|
||||
ImageManifestDescriptor:
|
||||
$ref: "#/definitions/OCIDescriptor"
|
||||
x-nullable: true
|
||||
@ -5123,55 +5363,112 @@ definitions:
|
||||
Command:
|
||||
description: "Command to run when starting the container"
|
||||
type: "string"
|
||||
example: "/bin/bash"
|
||||
Created:
|
||||
description: "When the container was created"
|
||||
description: |-
|
||||
Date and time at which the container was created as a Unix timestamp
|
||||
(number of seconds since EPOCH).
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
example: "1739811096"
|
||||
Ports:
|
||||
description: "The ports exposed by this container"
|
||||
description: |-
|
||||
Port-mappings for the container.
|
||||
type: "array"
|
||||
items:
|
||||
$ref: "#/definitions/Port"
|
||||
SizeRw:
|
||||
description: "The size of files that have been created or changed by this container"
|
||||
description: |-
|
||||
The size of files that have been created or changed by this container.
|
||||
|
||||
This field is omitted by default, and only set when size is requested
|
||||
in the API request.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
x-nullable: true
|
||||
example: "122880"
|
||||
SizeRootFs:
|
||||
description: "The total size of all the files in this container"
|
||||
description: |-
|
||||
The total size of all files in the read-only layers from the image
|
||||
that the container uses. These layers can be shared between containers.
|
||||
|
||||
This field is omitted by default, and only set when size is requested
|
||||
in the API request.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
x-nullable: true
|
||||
example: "1653948416"
|
||||
Labels:
|
||||
description: "User-defined key/value metadata."
|
||||
type: "object"
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
com.example.vendor: "Acme"
|
||||
com.example.license: "GPL"
|
||||
com.example.version: "1.0"
|
||||
State:
|
||||
description: "The state of this container (e.g. `Exited`)"
|
||||
description: |
|
||||
The state of this container.
|
||||
type: "string"
|
||||
enum:
|
||||
- "created"
|
||||
- "running"
|
||||
- "paused"
|
||||
- "restarting"
|
||||
- "exited"
|
||||
- "removing"
|
||||
- "dead"
|
||||
example: "running"
|
||||
Status:
|
||||
description: "Additional human-readable status of this container (e.g. `Exit 0`)"
|
||||
description: |-
|
||||
Additional human-readable status of this container (e.g. `Exit 0`)
|
||||
type: "string"
|
||||
example: "Up 4 days"
|
||||
HostConfig:
|
||||
type: "object"
|
||||
description: |-
|
||||
Summary of host-specific runtime information of the container. This
|
||||
is a reduced set of information in the container's "HostConfig" as
|
||||
available in the container "inspect" response.
|
||||
properties:
|
||||
NetworkMode:
|
||||
description: |-
|
||||
Networking mode (`host`, `none`, `container:<id>`) or name of the
|
||||
primary network the container is using.
|
||||
|
||||
This field is primarily for backward compatibility. The container
|
||||
can be connected to multiple networks for which information can be
|
||||
found in the `NetworkSettings.Networks` field, which enumerates
|
||||
settings per network.
|
||||
type: "string"
|
||||
example: "mynetwork"
|
||||
Annotations:
|
||||
description: "Arbitrary key-value metadata attached to container"
|
||||
description: |-
|
||||
Arbitrary key-value metadata attached to the container.
|
||||
type: "object"
|
||||
x-nullable: true
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
io.kubernetes.docker.type: "container"
|
||||
io.kubernetes.sandbox.id: "3befe639bed0fd6afdd65fd1fa84506756f59360ec4adc270b0fdac9be22b4d3"
|
||||
NetworkSettings:
|
||||
description: "A summary of the container's network settings"
|
||||
description: |-
|
||||
Summary of the container's network settings
|
||||
type: "object"
|
||||
properties:
|
||||
Networks:
|
||||
type: "object"
|
||||
description: |-
|
||||
Summary of network-settings for each network the container is
|
||||
attached to.
|
||||
additionalProperties:
|
||||
$ref: "#/definitions/EndpointSettings"
|
||||
Mounts:
|
||||
type: "array"
|
||||
description: |-
|
||||
List of mounts used by the container.
|
||||
items:
|
||||
$ref: "#/definitions/MountPoint"
|
||||
|
||||
@ -7053,7 +7350,7 @@ definitions:
|
||||
description: |
|
||||
The media type of the object this schema refers to.
|
||||
type: "string"
|
||||
example: "application/vnd.docker.distribution.manifest.v2+json"
|
||||
example: "application/vnd.oci.image.manifest.v1+json"
|
||||
digest:
|
||||
description: |
|
||||
The digest of the targeted content.
|
||||
@ -7064,27 +7361,52 @@ definitions:
|
||||
The size in bytes of the blob.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
example: 3987495
|
||||
# TODO Not yet including these fields for now, as they are nil / omitted in our response.
|
||||
# urls:
|
||||
# description: |
|
||||
# List of URLs from which this object MAY be downloaded.
|
||||
# type: "array"
|
||||
# items:
|
||||
# type: "string"
|
||||
# format: "uri"
|
||||
# annotations:
|
||||
# description: |
|
||||
# Arbitrary metadata relating to the targeted content.
|
||||
# type: "object"
|
||||
# additionalProperties:
|
||||
# type: "string"
|
||||
# platform:
|
||||
# $ref: "#/definitions/OCIPlatform"
|
||||
example: 424
|
||||
urls:
|
||||
description: |-
|
||||
List of URLs from which this object MAY be downloaded.
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
format: "uri"
|
||||
x-nullable: true
|
||||
annotations:
|
||||
description: |-
|
||||
Arbitrary metadata relating to the targeted content.
|
||||
type: "object"
|
||||
x-nullable: true
|
||||
additionalProperties:
|
||||
type: "string"
|
||||
example:
|
||||
"com.docker.official-images.bashbrew.arch": "amd64"
|
||||
"org.opencontainers.image.base.digest": "sha256:0d0ef5c914d3ea700147da1bd050c59edb8bb12ca312f3800b29d7c8087eabd8"
|
||||
"org.opencontainers.image.base.name": "scratch"
|
||||
"org.opencontainers.image.created": "2025-01-27T00:00:00Z"
|
||||
"org.opencontainers.image.revision": "9fabb4bad5138435b01857e2fe9363e2dc5f6a79"
|
||||
"org.opencontainers.image.source": "https://git.launchpad.net/cloud-images/+oci/ubuntu-base"
|
||||
"org.opencontainers.image.url": "https://hub.docker.com/_/ubuntu"
|
||||
"org.opencontainers.image.version": "24.04"
|
||||
data:
|
||||
type: string
|
||||
x-nullable: true
|
||||
description: |-
|
||||
Data is an embedding of the targeted content. This is encoded as a base64
|
||||
string when marshalled to JSON (automatically, by encoding/json). If
|
||||
present, Data can be used directly to avoid fetching the targeted content.
|
||||
example: null
|
||||
platform:
|
||||
$ref: "#/definitions/OCIPlatform"
|
||||
artifactType:
|
||||
description: |-
|
||||
ArtifactType is the IANA media type of this artifact.
|
||||
type: "string"
|
||||
x-nullable: true
|
||||
example: null
|
||||
|
||||
OCIPlatform:
|
||||
type: "object"
|
||||
x-go-name: Platform
|
||||
x-nullable: true
|
||||
description: |
|
||||
Describes the platform which the image in the manifest runs on, as defined
|
||||
in the [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
|
||||
@ -7554,143 +7876,6 @@ paths:
|
||||
type: "array"
|
||||
items:
|
||||
$ref: "#/definitions/ContainerSummary"
|
||||
examples:
|
||||
application/json:
|
||||
- Id: "8dfafdbc3a40"
|
||||
Names:
|
||||
- "/boring_feynman"
|
||||
Image: "ubuntu:latest"
|
||||
ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
|
||||
Command: "echo 1"
|
||||
Created: 1367854155
|
||||
State: "Exited"
|
||||
Status: "Exit 0"
|
||||
Ports:
|
||||
- PrivatePort: 2222
|
||||
PublicPort: 3333
|
||||
Type: "tcp"
|
||||
Labels:
|
||||
com.example.vendor: "Acme"
|
||||
com.example.license: "GPL"
|
||||
com.example.version: "1.0"
|
||||
SizeRw: 12288
|
||||
SizeRootFs: 0
|
||||
HostConfig:
|
||||
NetworkMode: "default"
|
||||
Annotations:
|
||||
io.kubernetes.docker.type: "container"
|
||||
NetworkSettings:
|
||||
Networks:
|
||||
bridge:
|
||||
NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
|
||||
EndpointID: "2cdc4edb1ded3631c81f57966563e5c8525b81121bb3706a9a9a3ae102711f3f"
|
||||
Gateway: "172.17.0.1"
|
||||
IPAddress: "172.17.0.2"
|
||||
IPPrefixLen: 16
|
||||
IPv6Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
MacAddress: "02:42:ac:11:00:02"
|
||||
Mounts:
|
||||
- Name: "fac362...80535"
|
||||
Source: "/data"
|
||||
Destination: "/data"
|
||||
Driver: "local"
|
||||
Mode: "ro,Z"
|
||||
RW: false
|
||||
Propagation: ""
|
||||
- Id: "9cd87474be90"
|
||||
Names:
|
||||
- "/coolName"
|
||||
Image: "ubuntu:latest"
|
||||
ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
|
||||
Command: "echo 222222"
|
||||
Created: 1367854155
|
||||
State: "Exited"
|
||||
Status: "Exit 0"
|
||||
Ports: []
|
||||
Labels: {}
|
||||
SizeRw: 12288
|
||||
SizeRootFs: 0
|
||||
HostConfig:
|
||||
NetworkMode: "default"
|
||||
Annotations:
|
||||
io.kubernetes.docker.type: "container"
|
||||
io.kubernetes.sandbox.id: "3befe639bed0fd6afdd65fd1fa84506756f59360ec4adc270b0fdac9be22b4d3"
|
||||
NetworkSettings:
|
||||
Networks:
|
||||
bridge:
|
||||
NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
|
||||
EndpointID: "88eaed7b37b38c2a3f0c4bc796494fdf51b270c2d22656412a2ca5d559a64d7a"
|
||||
Gateway: "172.17.0.1"
|
||||
IPAddress: "172.17.0.8"
|
||||
IPPrefixLen: 16
|
||||
IPv6Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
MacAddress: "02:42:ac:11:00:08"
|
||||
Mounts: []
|
||||
- Id: "3176a2479c92"
|
||||
Names:
|
||||
- "/sleepy_dog"
|
||||
Image: "ubuntu:latest"
|
||||
ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
|
||||
Command: "echo 3333333333333333"
|
||||
Created: 1367854154
|
||||
State: "Exited"
|
||||
Status: "Exit 0"
|
||||
Ports: []
|
||||
Labels: {}
|
||||
SizeRw: 12288
|
||||
SizeRootFs: 0
|
||||
HostConfig:
|
||||
NetworkMode: "default"
|
||||
Annotations:
|
||||
io.kubernetes.image.id: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
|
||||
io.kubernetes.image.name: "ubuntu:latest"
|
||||
NetworkSettings:
|
||||
Networks:
|
||||
bridge:
|
||||
NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
|
||||
EndpointID: "8b27c041c30326d59cd6e6f510d4f8d1d570a228466f956edf7815508f78e30d"
|
||||
Gateway: "172.17.0.1"
|
||||
IPAddress: "172.17.0.6"
|
||||
IPPrefixLen: 16
|
||||
IPv6Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
MacAddress: "02:42:ac:11:00:06"
|
||||
Mounts: []
|
||||
- Id: "4cb07b47f9fb"
|
||||
Names:
|
||||
- "/running_cat"
|
||||
Image: "ubuntu:latest"
|
||||
ImageID: "d74508fb6632491cea586a1fd7d748dfc5274cd6fdfedee309ecdcbc2bf5cb82"
|
||||
Command: "echo 444444444444444444444444444444444"
|
||||
Created: 1367854152
|
||||
State: "Exited"
|
||||
Status: "Exit 0"
|
||||
Ports: []
|
||||
Labels: {}
|
||||
SizeRw: 12288
|
||||
SizeRootFs: 0
|
||||
HostConfig:
|
||||
NetworkMode: "default"
|
||||
Annotations:
|
||||
io.kubernetes.config.source: "api"
|
||||
NetworkSettings:
|
||||
Networks:
|
||||
bridge:
|
||||
NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
|
||||
EndpointID: "d91c7b2f0644403d7ef3095985ea0e2370325cd2332ff3a3225c4247328e66e9"
|
||||
Gateway: "172.17.0.1"
|
||||
IPAddress: "172.17.0.5"
|
||||
IPPrefixLen: 16
|
||||
IPv6Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
MacAddress: "02:42:ac:11:00:05"
|
||||
Mounts: []
|
||||
400:
|
||||
description: "bad parameter"
|
||||
schema:
|
||||
@ -7915,246 +8100,7 @@ paths:
|
||||
200:
|
||||
description: "no error"
|
||||
schema:
|
||||
type: "object"
|
||||
title: "ContainerInspectResponse"
|
||||
properties:
|
||||
Id:
|
||||
description: "The ID of the container"
|
||||
type: "string"
|
||||
Created:
|
||||
description: "The time the container was created"
|
||||
type: "string"
|
||||
Path:
|
||||
description: "The path to the command being run"
|
||||
type: "string"
|
||||
Args:
|
||||
description: "The arguments to the command being run"
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
State:
|
||||
$ref: "#/definitions/ContainerState"
|
||||
Image:
|
||||
description: "The container's image ID"
|
||||
type: "string"
|
||||
ResolvConfPath:
|
||||
type: "string"
|
||||
HostnamePath:
|
||||
type: "string"
|
||||
HostsPath:
|
||||
type: "string"
|
||||
LogPath:
|
||||
type: "string"
|
||||
Name:
|
||||
type: "string"
|
||||
RestartCount:
|
||||
type: "integer"
|
||||
Driver:
|
||||
type: "string"
|
||||
Platform:
|
||||
type: "string"
|
||||
ImageManifestDescriptor:
|
||||
$ref: "#/definitions/OCIDescriptor"
|
||||
description: |
|
||||
OCI descriptor of the platform-specific manifest of the image
|
||||
the container was created from.
|
||||
|
||||
Note: Only available if the daemon provides a multi-platform
|
||||
image store.
|
||||
MountLabel:
|
||||
type: "string"
|
||||
ProcessLabel:
|
||||
type: "string"
|
||||
AppArmorProfile:
|
||||
type: "string"
|
||||
ExecIDs:
|
||||
description: "IDs of exec instances that are running in the container."
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
x-nullable: true
|
||||
HostConfig:
|
||||
$ref: "#/definitions/HostConfig"
|
||||
GraphDriver:
|
||||
$ref: "#/definitions/DriverData"
|
||||
SizeRw:
|
||||
description: |
|
||||
The size of files that have been created or changed by this
|
||||
container.
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
SizeRootFs:
|
||||
description: "The total size of all the files in this container."
|
||||
type: "integer"
|
||||
format: "int64"
|
||||
Mounts:
|
||||
type: "array"
|
||||
items:
|
||||
$ref: "#/definitions/MountPoint"
|
||||
Config:
|
||||
$ref: "#/definitions/ContainerConfig"
|
||||
NetworkSettings:
|
||||
$ref: "#/definitions/NetworkSettings"
|
||||
examples:
|
||||
application/json:
|
||||
AppArmorProfile: ""
|
||||
Args:
|
||||
- "-c"
|
||||
- "exit 9"
|
||||
Config:
|
||||
AttachStderr: true
|
||||
AttachStdin: false
|
||||
AttachStdout: true
|
||||
Cmd:
|
||||
- "/bin/sh"
|
||||
- "-c"
|
||||
- "exit 9"
|
||||
Domainname: ""
|
||||
Env:
|
||||
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
Healthcheck:
|
||||
Test: ["CMD-SHELL", "exit 0"]
|
||||
Hostname: "ba033ac44011"
|
||||
Image: "ubuntu"
|
||||
Labels:
|
||||
com.example.vendor: "Acme"
|
||||
com.example.license: "GPL"
|
||||
com.example.version: "1.0"
|
||||
MacAddress: ""
|
||||
NetworkDisabled: false
|
||||
OpenStdin: false
|
||||
StdinOnce: false
|
||||
Tty: false
|
||||
User: ""
|
||||
Volumes:
|
||||
/volumes/data: {}
|
||||
WorkingDir: ""
|
||||
StopSignal: "SIGTERM"
|
||||
StopTimeout: 10
|
||||
Created: "2015-01-06T15:47:31.485331387Z"
|
||||
Driver: "overlay2"
|
||||
ExecIDs:
|
||||
- "b35395de42bc8abd327f9dd65d913b9ba28c74d2f0734eeeae84fa1c616a0fca"
|
||||
- "3fc1232e5cd20c8de182ed81178503dc6437f4e7ef12b52cc5e8de020652f1c4"
|
||||
HostConfig:
|
||||
MaximumIOps: 0
|
||||
MaximumIOBps: 0
|
||||
BlkioWeight: 0
|
||||
BlkioWeightDevice:
|
||||
- {}
|
||||
BlkioDeviceReadBps:
|
||||
- {}
|
||||
BlkioDeviceWriteBps:
|
||||
- {}
|
||||
BlkioDeviceReadIOps:
|
||||
- {}
|
||||
BlkioDeviceWriteIOps:
|
||||
- {}
|
||||
ContainerIDFile: ""
|
||||
CpusetCpus: ""
|
||||
CpusetMems: ""
|
||||
CpuPercent: 80
|
||||
CpuShares: 0
|
||||
CpuPeriod: 100000
|
||||
CpuRealtimePeriod: 1000000
|
||||
CpuRealtimeRuntime: 10000
|
||||
Devices: []
|
||||
DeviceRequests:
|
||||
- Driver: "nvidia"
|
||||
Count: -1
|
||||
DeviceIDs": ["0", "1", "GPU-fef8089b-4820-abfc-e83e-94318197576e"]
|
||||
Capabilities: [["gpu", "nvidia", "compute"]]
|
||||
Options:
|
||||
property1: "string"
|
||||
property2: "string"
|
||||
IpcMode: ""
|
||||
Memory: 0
|
||||
MemorySwap: 0
|
||||
MemoryReservation: 0
|
||||
OomKillDisable: false
|
||||
OomScoreAdj: 500
|
||||
NetworkMode: "bridge"
|
||||
PidMode: ""
|
||||
PortBindings: {}
|
||||
Privileged: false
|
||||
ReadonlyRootfs: false
|
||||
PublishAllPorts: false
|
||||
RestartPolicy:
|
||||
MaximumRetryCount: 2
|
||||
Name: "on-failure"
|
||||
LogConfig:
|
||||
Type: "json-file"
|
||||
Sysctls:
|
||||
net.ipv4.ip_forward: "1"
|
||||
Ulimits:
|
||||
- {}
|
||||
VolumeDriver: ""
|
||||
ShmSize: 67108864
|
||||
HostnamePath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hostname"
|
||||
HostsPath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/hosts"
|
||||
LogPath: "/var/lib/docker/containers/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b/1eb5fabf5a03807136561b3c00adcd2992b535d624d5e18b6cdc6a6844d9767b-json.log"
|
||||
Id: "ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39"
|
||||
Image: "04c5d3b7b0656168630d3ba35d8889bd0e9caafcaeb3004d2bfbc47e7c5d35d2"
|
||||
MountLabel: ""
|
||||
Name: "/boring_euclid"
|
||||
NetworkSettings:
|
||||
Bridge: ""
|
||||
SandboxID: ""
|
||||
HairpinMode: false
|
||||
LinkLocalIPv6Address: ""
|
||||
LinkLocalIPv6PrefixLen: 0
|
||||
SandboxKey: ""
|
||||
EndpointID: ""
|
||||
Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
IPAddress: ""
|
||||
IPPrefixLen: 0
|
||||
IPv6Gateway: ""
|
||||
MacAddress: ""
|
||||
Networks:
|
||||
bridge:
|
||||
NetworkID: "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812"
|
||||
EndpointID: "7587b82f0dada3656fda26588aee72630c6fab1536d36e394b2bfbcf898c971d"
|
||||
Gateway: "172.17.0.1"
|
||||
IPAddress: "172.17.0.2"
|
||||
IPPrefixLen: 16
|
||||
IPv6Gateway: ""
|
||||
GlobalIPv6Address: ""
|
||||
GlobalIPv6PrefixLen: 0
|
||||
MacAddress: "02:42:ac:12:00:02"
|
||||
Path: "/bin/sh"
|
||||
ProcessLabel: ""
|
||||
ResolvConfPath: "/var/lib/docker/containers/ba033ac4401106a3b513bc9d639eee123ad78ca3616b921167cd74b20e25ed39/resolv.conf"
|
||||
RestartCount: 1
|
||||
State:
|
||||
Error: ""
|
||||
ExitCode: 9
|
||||
FinishedAt: "2015-01-06T15:47:32.080254511Z"
|
||||
Health:
|
||||
Status: "healthy"
|
||||
FailingStreak: 0
|
||||
Log:
|
||||
- Start: "2019-12-22T10:59:05.6385933Z"
|
||||
End: "2019-12-22T10:59:05.8078452Z"
|
||||
ExitCode: 0
|
||||
Output: ""
|
||||
OOMKilled: false
|
||||
Dead: false
|
||||
Paused: false
|
||||
Pid: 0
|
||||
Restarting: false
|
||||
Running: true
|
||||
StartedAt: "2015-01-06T15:47:32.072697474Z"
|
||||
Status: "running"
|
||||
Mounts:
|
||||
- Name: "fac362...80535"
|
||||
Source: "/data"
|
||||
Destination: "/data"
|
||||
Driver: "local"
|
||||
Mode: "ro,Z"
|
||||
RW: false
|
||||
Propagation: ""
|
||||
$ref: "#/definitions/ContainerInspectResponse"
|
||||
404:
|
||||
description: "no such container"
|
||||
schema:
|
||||
@ -10719,6 +10665,7 @@ paths:
|
||||
items:
|
||||
type: "integer"
|
||||
minimum: 0
|
||||
example: [80, 64]
|
||||
DetachKeys:
|
||||
type: "string"
|
||||
description: |
|
||||
@ -10805,9 +10752,11 @@ paths:
|
||||
Detach:
|
||||
type: "boolean"
|
||||
description: "Detach from the command."
|
||||
example: false
|
||||
Tty:
|
||||
type: "boolean"
|
||||
description: "Allocate a pseudo-TTY."
|
||||
example: true
|
||||
ConsoleSize:
|
||||
type: "array"
|
||||
description: "Initial console size, as an `[height, width]` array."
|
||||
@ -10817,10 +10766,7 @@ paths:
|
||||
items:
|
||||
type: "integer"
|
||||
minimum: 0
|
||||
example:
|
||||
Detach: false
|
||||
Tty: true
|
||||
ConsoleSize: [80, 64]
|
||||
example: [80, 64]
|
||||
- name: "id"
|
||||
in: "path"
|
||||
description: "Exec instance ID"
|
||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -229,7 +229,7 @@ github.com/davecgh/go-spew/spew
|
||||
# github.com/distribution/reference v0.6.0
|
||||
## explicit; go 1.20
|
||||
github.com/distribution/reference
|
||||
# github.com/docker/cli v28.0.0-rc.2+incompatible
|
||||
# github.com/docker/cli v28.0.0-rc.3+incompatible
|
||||
## explicit
|
||||
github.com/docker/cli/cli
|
||||
github.com/docker/cli/cli-plugins/hooks
|
||||
@ -283,7 +283,7 @@ github.com/docker/distribution/registry/client/transport
|
||||
github.com/docker/distribution/registry/storage/cache
|
||||
github.com/docker/distribution/registry/storage/cache/memory
|
||||
github.com/docker/distribution/uuid
|
||||
# github.com/docker/docker v28.0.0-rc.2+incompatible
|
||||
# github.com/docker/docker v28.0.0-rc.3+incompatible
|
||||
## explicit
|
||||
github.com/docker/docker/api
|
||||
github.com/docker/docker/api/types
|
||||
|
Loading…
x
Reference in New Issue
Block a user