Skip to content

Commit ba64618

Browse files
committed
vendor: github.com/docker/docker 5b53ddfcdd1c (v25.0.0-dev)
full diff: moby/moby@4b19b2f...5b53ddf Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 0e52033 commit ba64618

File tree

17 files changed

+283
-56
lines changed

17 files changed

+283
-56
lines changed

cli/command/container/opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func addFlags(flags *pflag.FlagSet) *containerOptions {
185185
flags.VarP(&copts.labels, "label", "l", "Set meta data on a container")
186186
flags.Var(&copts.labelsFile, "label-file", "Read in a line delimited file of labels")
187187
flags.BoolVar(&copts.readonlyRootfs, "read-only", false, "Mount the container's root filesystem as read only")
188-
flags.StringVar(&copts.restartPolicy, "restart", "no", "Restart policy to apply when a container exits")
188+
flags.StringVar(&copts.restartPolicy, "restart", string(container.RestartPolicyDisabled), "Restart policy to apply when a container exits")
189189
flags.StringVar(&copts.stopSignal, "stop-signal", "", "Signal to stop the container")
190190
flags.IntVar(&copts.stopTimeout, "stop-timeout", 0, "Timeout (in seconds) to stop a container")
191191
flags.SetAnnotation("stop-timeout", "version", []string{"1.25"})

cli/command/container/opts_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func TestParseRestartPolicy(t *testing.T) {
711711
{
712712
input: "no",
713713
expected: container.RestartPolicy{
714-
Name: "no",
714+
Name: container.RestartPolicyDisabled,
715715
},
716716
},
717717
{
@@ -721,13 +721,13 @@ func TestParseRestartPolicy(t *testing.T) {
721721
{
722722
input: "always",
723723
expected: container.RestartPolicy{
724-
Name: "always",
724+
Name: container.RestartPolicyAlways,
725725
},
726726
},
727727
{
728728
input: "always:1",
729729
expected: container.RestartPolicy{
730-
Name: "always",
730+
Name: container.RestartPolicyAlways,
731731
MaximumRetryCount: 1,
732732
},
733733
},
@@ -738,7 +738,7 @@ func TestParseRestartPolicy(t *testing.T) {
738738
{
739739
input: "on-failure:1",
740740
expected: container.RestartPolicy{
741-
Name: "on-failure",
741+
Name: container.RestartPolicyOnFailure,
742742
MaximumRetryCount: 1,
743743
},
744744
},
@@ -749,7 +749,7 @@ func TestParseRestartPolicy(t *testing.T) {
749749
{
750750
input: "unless-stopped",
751751
expected: container.RestartPolicy{
752-
Name: "unless-stopped",
752+
Name: container.RestartPolicyUnlessStopped,
753753
},
754754
},
755755
{

opts/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ func ParseRestartPolicy(policy string) (container.RestartPolicy, error) {
9191
p.MaximumRetryCount = count
9292
}
9393

94-
p.Name = k
94+
p.Name = container.RestartPolicyMode(k)
9595
return p, nil
9696
}

vendor.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/containerd/containerd v1.6.22
1313
github.com/creack/pty v1.1.18
1414
github.com/docker/distribution v2.8.2+incompatible
15-
github.com/docker/docker v24.0.0-rc.2.0.20230807181406-4b19b2f4babd+incompatible // master (v25.0.0-dev)
15+
github.com/docker/docker v24.0.0-rc.2.0.20230826220105-5b53ddfcdd1c+incompatible // master (v25.0.0-dev)
1616
github.com/docker/docker-credential-helpers v0.8.0
1717
github.com/docker/go-connections v0.4.0
1818
github.com/docker/go-units v0.5.0

vendor.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73/go.mod h1:xb
5050
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
5151
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
5252
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
53-
github.com/docker/docker v24.0.0-rc.2.0.20230807181406-4b19b2f4babd+incompatible h1:jpw4copYljr4wqeQ6nSzvBNe83BqmStvHsvZdnlnEo0=
54-
github.com/docker/docker v24.0.0-rc.2.0.20230807181406-4b19b2f4babd+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
53+
github.com/docker/docker v24.0.0-rc.2.0.20230826220105-5b53ddfcdd1c+incompatible h1:7l3/TARsONCNaf3GjhZ134eoxYbeZkEBw6rNa952csg=
54+
github.com/docker/docker v24.0.0-rc.2.0.20230826220105-5b53ddfcdd1c+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
5555
github.com/docker/docker-credential-helpers v0.8.0 h1:YQFtbBQb4VrpoPxhFuzEBPQ9E16qz5SpHLS+uswaCp8=
5656
github.com/docker/docker-credential-helpers v0.8.0/go.mod h1:UGFXcuoQ5TxPiB54nHOZ32AWRqQdECoh/Mg0AlEYb40=
5757
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=

vendor/github.com/docker/docker/api/swagger.yaml

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/errors.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/hostconfig.go

Lines changed: 38 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/network/ipam.go

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/network/network.go

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)