mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/t/ctr: deprecate NetworkSettingsBase.Bridge
This field provides little value as it's only set when the daemon is started with --bridge flag specified, and the inspected container is connected to the default bridge network. Unfortunately, there's no equivalent field in NetworkSettings.Networks. Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -30,6 +30,8 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||
* `GET /images/json` now sets the value of `Containers` field for all images
|
||||
to the count of containers using the image.
|
||||
This field was previously always -1.
|
||||
* Deprecated: The field `NetworkSettings.Bridge` returned by `GET /containers/{id}/json`
|
||||
is deprecated and will be removed in the next API version.
|
||||
|
||||
## v1.50 API changes
|
||||
|
||||
|
||||
@@ -1608,6 +1608,8 @@ definitions:
|
||||
Bridge:
|
||||
description: |
|
||||
Name of the default bridge interface when dockerd's --bridge flag is set.
|
||||
|
||||
Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
|
||||
type: "string"
|
||||
example: "docker0"
|
||||
SandboxID:
|
||||
|
||||
@@ -1620,6 +1620,8 @@ definitions:
|
||||
Bridge:
|
||||
description: |
|
||||
Name of the default bridge interface when dockerd's --bridge flag is set.
|
||||
|
||||
Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
|
||||
type: "string"
|
||||
example: "docker0"
|
||||
SandboxID:
|
||||
|
||||
@@ -13,7 +13,7 @@ type NetworkSettings struct {
|
||||
|
||||
// NetworkSettingsBase holds networking state for a container when inspecting it.
|
||||
type NetworkSettingsBase struct {
|
||||
Bridge string // Bridge contains the name of the default bridge interface iff it was set through the daemon --bridge flag.
|
||||
Bridge string // Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
|
||||
SandboxID string // SandboxID uniquely represents a container's network stack
|
||||
SandboxKey string // SandboxKey identifies the sandbox
|
||||
Ports PortMap // Ports is a collection of PortBinding indexed by Port
|
||||
|
||||
2
vendor/github.com/moby/moby/api/swagger.yaml
generated
vendored
2
vendor/github.com/moby/moby/api/swagger.yaml
generated
vendored
@@ -1620,6 +1620,8 @@ definitions:
|
||||
Bridge:
|
||||
description: |
|
||||
Name of the default bridge interface when dockerd's --bridge flag is set.
|
||||
|
||||
Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
|
||||
type: "string"
|
||||
example: "docker0"
|
||||
SandboxID:
|
||||
|
||||
2
vendor/github.com/moby/moby/api/types/container/network_settings.go
generated
vendored
2
vendor/github.com/moby/moby/api/types/container/network_settings.go
generated
vendored
@@ -13,7 +13,7 @@ type NetworkSettings struct {
|
||||
|
||||
// NetworkSettingsBase holds networking state for a container when inspecting it.
|
||||
type NetworkSettingsBase struct {
|
||||
Bridge string // Bridge contains the name of the default bridge interface iff it was set through the daemon --bridge flag.
|
||||
Bridge string // Deprecated: This field is only set when the daemon is started with the --bridge flag specified.
|
||||
SandboxID string // SandboxID uniquely represents a container's network stack
|
||||
SandboxKey string // SandboxKey identifies the sandbox
|
||||
Ports PortMap // Ports is a collection of PortBinding indexed by Port
|
||||
|
||||
Reference in New Issue
Block a user