Docker container inspect in Docker for Windows application not working properly

Docker Desktop Community
Version 2.3.4.0 (46980)
Edge channel

Windows 10 PRO
Version 2004 (Build 19041.388)

In the Docker Desktop application there is an container inspect option which shows environment variables and values and also Port. But the application shows 1433/tcp with not binded (see img 1)

If I do the container inspect from powershell I actually do see a port binded, see below output of container docker inspect.

{
    "Id": "3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443",
    "Created": "2020-07-20T08:31:45.5665533Z",
    "Path": "powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; powershell ./start -sa_password $env:sqlSa -Verbose -ACCEPT_EULA 'Y'",
    "Args": [],
    "State": {
        "Status": "running",
        "Running": true,
        "Paused": false,
        "Restarting": false,
        "OOMKilled": false,
        "Dead": false,
        "Pid": 1844,
        "ExitCode": 0,
        "Error": "",
        "StartedAt": "2020-08-06T07:40:31.6433282Z",
        "FinishedAt": "2020-08-05T17:18:07.4002546+02:00",
        "Health": {
            "Status": "healthy",
            "FailingStreak": 0,
            "Log": [
                {
                    "Start": "2020-08-06T09:47:02.4975907+02:00",
                    "End": "2020-08-06T09:47:02.5611357+02:00",
                    "ExitCode": 0,
                    "Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
                },
                {
                    "Start": "2020-08-06T09:47:32.568724+02:00",
                    "End": "2020-08-06T09:47:32.6267326+02:00",
                    "ExitCode": 0,
                    "Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
                },
                {
                    "Start": "2020-08-06T09:48:02.6453451+02:00",
                    "End": "2020-08-06T09:48:02.7093376+02:00",
                    "ExitCode": 0,
                    "Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
                },
                {
                    "Start": "2020-08-06T09:48:32.7232707+02:00",
                    "End": "2020-08-06T09:48:32.79295+02:00",
                    "ExitCode": 0,
                    "Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
                },
                {
                    "Start": "2020-08-06T09:49:02.8110233+02:00",
                    "End": "2020-08-06T09:49:02.8679483+02:00",
                    "ExitCode": 0,
                    "Output": "           \r\n-----------\r\n          1\r\n\r\n(1 rows affected)\r\n"
                }
            ]
        }
    },
    "Image": "sha256:cae9426d6d26f51186fe406a47aa6518a911e98483e767a8ebf6b90360cde526",
    "ResolvConfPath": "",
    "HostnamePath": "",
    "HostsPath": "",
    "LogPath": "D:\\Docker\\containers\\3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443\\3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443-json.log",
    "Name": "/goofy_vaughan",
    "RestartCount": 0,
    "Driver": "windowsfilter",
    "Platform": "windows",
    "MountLabel": "",
    "ProcessLabel": "",
    "AppArmorProfile": "",
    "ExecIDs": null,
    "HostConfig": {
        "Binds": null,
        "ContainerIDFile": "",
        "LogConfig": {
            "Type": "json-file",
            "Config": {}
        },
        "NetworkMode": "default",
        "PortBindings": {
            "1433/tcp": [
                {
                    "HostIp": "",
                    "HostPort": ""
                }
            ]
        },
        "RestartPolicy": {
            "Name": "no",
            "MaximumRetryCount": 0
        },
        "AutoRemove": false,
        "VolumeDriver": "",
        "VolumesFrom": null,
        "CapAdd": null,
        "CapDrop": null,
        "Capabilities": null,
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": null,
        "GroupAdd": null,
        "IpcMode": "",
        "Cgroup": "",
        "Links": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyRootfs": false,
        "SecurityOpt": null,
        "UTSMode": "",
        "UsernsMode": "",
        "ShmSize": 0,
        "ConsoleSize": [
            73,
            237
        ],
        "Isolation": "hyperv",
        "CpuShares": 0,
        "Memory": 0,
        "NanoCpus": 0,
        "CgroupParent": "",
        "BlkioWeight": 0,
        "BlkioWeightDevice": [],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteIOps": null,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "Devices": [],
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "OomKillDisable": false,
        "PidsLimit": null,
        "Ulimits": null,
        "CpuCount": 0,
        "CpuPercent": 0,
        "IOMaximumIOps": 0,
        "IOMaximumBandwidth": 0,
        "MaskedPaths": null,
        "ReadonlyPaths": null
    },
    "GraphDriver": {
        "Data": {
            "dir": "D:\\Docker\\windowsfilter\\3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443"
        },
        "Name": "windowsfilter"
    },
    "Mounts": [],
    "Config": {
        "Hostname": "3f91cbb4cec4",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "1433/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "sa_password=_",
            "attach_dbs=[]",
            "ACCEPT_EULA=_",
            "sa_password_path=C:\\ProgramData\\Docker\\secrets\\sa-password",
            "sqlRsms=n42hQs7@ZF!b^q$!v$4*wwhpgH47v3dcmxFYwSBX",
            "sqlData2Cloud=ud6DWxM=4N9=qkmU3_!S9=^SG6GHz%-Kxnm@$ZEP",
            "sqlSa=Password123!@#"
        ],
        "Cmd": [
            "powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; powershell ./start -sa_password $env:sqlSa -Verbose -ACCEPT_EULA 'Y'"
        ],
        "Healthcheck": {
            "Test": [
                "CMD",
                "sqlcmd",
                "-Q",
                "select 1"
            ]
        },
        "ArgsEscaped": true,
        "Image": "cae",
        "Volumes": null,
        "WorkingDir": "C:\\",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "maintainer": "Perry Skountrianos"
        }
    },
    "NetworkSettings": {
        "Bridge": "",
        "SandboxID": "3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443",
        "HairpinMode": false,
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "Ports": {
            "1433/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "50115"
                }
            ]
        },
        "SandboxKey": "3f91cbb4cec46966034390bec3bf05afd5465139f61bc6c98c97ea1c27ce2443",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null,
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "MacAddress": "",
        "Networks": {
            "nat": {
                "IPAMConfig": null,
                "Links": null,
                "Aliases": null,
                "NetworkID": "95910d2df6ae9e238c53b82cb291a02ebdf732dec277ba495deacc52e396aba2",
                "EndpointID": "7389639800b8965a13c1a5c173c0ddad6a52c3c3187b8cefcf6dfa350e3acb2e",
                "Gateway": "172.20.192.1",
                "IPAddress": "172.20.202.7",
                "IPPrefixLen": 16,
                "IPv6Gateway": "",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "MacAddress": "00:15:5d:b9:d6:f7",
                "DriverOpts": null
            }
        }
    }
}

I was thinking of making this an issue on GitHub but there are like 900+ issues still open so I was kinda hopeless on that thought. Thats why I am posting it here, hopefully it will get addressed sooner.

It is not a major thingy, I mean with powershell I can get the information, but still the application should provide the exact same information and this Port binding is seriously handy to see instant in that Docker Desktop application :slight_smile: