38595fecb6
Unexport container commands
...
This patch deprecates exported container commands and moves the
implementation details to an unexported function.
Commands that are affected include:
- container.NewRunCommand
- container.NewExecCommand
- container.NewPsCommand
- container.NewContainerCommand
- container.NewAttachCommand
- container.NewCommitCommand
- container.NewCopyCommand
- container.NewCreateCommand
- container.NewDiffCommand
- container.NewExportCommand
- container.NewKillCommand
- container.NewLogsCommand
- container.NewPauseCommand
- container.NewPortCommand
- container.NewRenameCommand
- container.NewRestartCommand
- container.NewRmCommand
- container.NewStartCommand
- container.NewStatsCommand
- container.NewStopCommand
- container.NewTopCommand
- container.NewUnpauseCommand
- container.NewUpdateCommand
- container.NewWaitCommand
- container.NewPruneCommand
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com >
2025-08-19 11:12:19 +02:00
f937e62c89
replace direct uses of github.com/docker/go-connections/nat types
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-07-31 17:37:34 +02:00
644dc16b16
vendor: github.com/docker/docker master (v29.0-dev)
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-07-21 23:04:50 +02:00
12d637c1b5
cli/command/container: TestNewPortCommandOutput: remove DCT
...
This looks like a copy/paste from other tests, because this test
does not test anything related to docker content trust.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-04-01 14:48:02 +02:00
67458f710d
cli/command: remove redundant capturing of loop vars in tests (copyloopvar)
...
go1.22 and up now produce a unique variable in loops, tehrefore no longer
requiring to capture the variable manually;
service/logs/parse_logs_test.go:50:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2024-11-05 10:14:30 +01:00
b194274beb
replace uses of deprecated API types
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2024-07-04 15:22:18 +02:00
1768240bcd
cli/command/container: runPort: sort ports before printing
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-12-01 10:58:40 +01:00
c5613ac032
cli/command/container: TestNewPortCommandOutput improve test
...
Make sure that the container has multiple port-mappings to illustrate
that only the given port is matched.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-12-01 10:52:15 +01:00
e946bf0804
cli/command/container: remove deprecated io/ioutil
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-02-25 15:36:23 +01:00
168173a3f1
Use net.JoinHostPort() to fix formatting with IPv6 addresses
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2021-04-20 11:05:24 +02:00