Bug 1322459 - docker inspect non-camel-case JSON key: NetworkSettings.Networks.bridge
Summary: docker inspect non-camel-case JSON key: NetworkSettings.Networks.bridge
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard: docker-autotest:0.8.5:docker_cli/dock...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-30 14:21 UTC by Chris Evich
Modified: 2019-03-06 01:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-30 14:38:28 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Chris Evich 2016-03-30 14:21:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):
docker-1.9.1-19.el7.x86_64
docker version: 1.9.1
Image full_name:registry.access.redhat.com/rhel7/rhel:latest
LONG_ID:bf63a676257aeb7a75a6bbbda138398bbaf223ab34fe9d169e458f9b399004ef 

How reproducible:
Unknown, failure found in CI: https://url.corp.redhat.com/acc530c
with job configuration: https://url.corp.redhat.com/e7afa6c

Steps to Reproduce:
1. run docker inspect against a running container

Actual results:
[
{
...cut...
    "NetworkSettings": {
        ...cut...
        "Networks": {
            "bridge": {     <----- lower-case B
...cut...
}
]

Expected results:
[
{
...cut...
    "NetworkSettings": {
        ...cut...
        "Networks": {
            "Bridge": {     <----- upper-case B
...cut...
}
]

Additional info:

Comment 2 Daniel Walsh 2016-03-30 14:38:28 UTC
I don't see this as a bug.  "bridge" is the name of the network.  It could just as easily been called "foobar".


man docker run
...
       --net="bridge"
          Set the Network mode for the container
                                      'bridge': create a network stack on  the
       default Docker bridge
                                      'none': no networking
                                      'container:<name|id>':   reuse   another
       container's network stack
                                      'host':  use  the  Docker  host  network
       stack.  Note:  the  host  mode gives the container full access to local
       system services such as D-bus and is therefore considered insecure.
                                      '<network-name>|<network-id>':   connect
       to a user-defined network

Comment 3 Chris Evich 2016-03-30 16:02:21 UTC
(In reply to Daniel Walsh from comment #2)
> I don't see this as a bug.  "bridge" is the name of the network.  It could
> just as easily been called "foobar".

Oh ok, so it's more of a 'data' key as opposed structural. Fair enough, I'll add an exception to checking this in CI.

Comment 4 Chris Evich 2016-03-30 16:26:39 UTC
(ref: https://github.com/autotest/autotest-docker/pull/585 )


Note You need to log in before you can comment on or make changes to this bug.