Docker is running but not able to connect to the Mendix application

0
Hii all, I’m using  Windows 10 with WSL2 & Hyper-V enabled and  Docker CE Desktop installed and working fine 3) Followed below tutorials Build Docker Image:   https://docs.mendix.com/developerportal/deploy/docker-deploy  Run Docker Image:    https://docs.mendix.com/developerportal/deploy/run-mendix-docker-image       I am able to successfully run the docker image and I can see the container is running using  docker ps docker desktop client But I am not able to connect to the Mendix application running inside the container by pointing to localhost:8080 in my HOST MACHINE Chrome browser. I have tried all possibilities and I am not able to connect to it in the browser. I have given docker inspect <container-id> JSON output for your reference below:  [ { "Id": "59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06", "Created": "2020-12-16T08:32:33.55853Z", "Path": "/opt/mendix/build/startup", "Args": [ "/opt/mendix/buildpack/buildpack/start.py" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 806, "ExitCode": 0, "Error": "", "StartedAt": "2020-12-16T08:32:35.6708607Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:6cb1149e80e7b3262269910c75d95e4632dfefc1db345e458dbd4b7ca8dc3c5b", "ResolvConfPath": "/var/lib/docker/containers/59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06/resolv.conf", "HostnamePath": "/var/lib/docker/containers/59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06/hostname", "HostsPath": "/var/lib/docker/containers/59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06/hosts", "LogPath": "/var/lib/docker/containers/59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06/59d93315a726f5335e63024ee96af71414649ba7aeb06ece9bcdb9c616c0dc06-json.log", "Name": "/cool_mclaren", "RestartCount": 0, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": null, "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "default", "PortBindings": {}, "RestartPolicy": { "Name": "no", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "Capabilities": null, "Dns": [], "DnsOptions": [], "DnsSearch": [], "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 50, 192 ], "Isolation": "", "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": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/e41d77a3305e2e0deb2b214cfe41d97f76b94cc30593c66b0cae5f5f9caf3b0e-init/diff:/var/lib/docker/overlay2/l45vtpzaz8h8g3m4jgx8ll50j/diff:/var/lib/docker/overlay2/i0wfa9anlpju3oleuibe6ku52/diff:/var/lib/docker/overlay2/o7a88jsjnlmlxhu6pd8f3l557/diff:/var/lib/docker/overlay2/3l4orrtb110g0g8huk63ffe57/diff:/var/lib/docker/overlay2/k8sjp5skjqb9jkpx46oiooom1/diff:/var/lib/docker/overlay2/u0hn8tm7663bbgsagkdpuvtiv/diff:/var/lib/docker/overlay2/bsu5gx84w68aa8wmko4jazjcx/diff:/var/lib/docker/overlay2/2guyx5xhlnzeynk6g98awl9t7/diff:/var/lib/docker/overlay2/17ed59ff43e036deeb0b1c4ee8ff8dac5d5c5b0c922d680fbe35ade84dfbfcbd/diff:/var/lib/docker/overlay2/de9e81585b7ade54f32e31a06dea1dd60fb3ccd80bc6bde52a3d822642d0757f/diff:/var/lib/docker/overlay2/7e8a032e4518a6843436d0d44727ee6770e9df99174eda9923df8d181cddf041/diff:/var/lib/docker/overlay2/3a5d6c7fecc74fe68114206dc85189656bd957248883cf2648551aab313e12e3/diff:/var/lib/docker/overlay2/62ad519417dd913bfd1b9843371f41aee0910db277b22eee9ff445b7d55a4a78/diff", "MergedDir": "/var/lib/docker/overlay2/e41d77a3305e2e0deb2b214cfe41d97f76b94cc30593c66b0cae5f5f9caf3b0e/merged", "UpperDir": "/var/lib/docker/overlay2/e41d77a3305e2e0deb2b214cfe41d97f76b94cc30593c66b0cae5f5f9caf3b0e/diff", "WorkDir": "/var/lib/docker/overlay2/e41d77a3305e2e0deb2b214cfe41d97f76b94cc30593c66b0cae5f5f9caf3b0e/work" }, "Name": "overlay2" }, "Mounts": [], "Config": { "Hostname": "59d93315a726", "Domainname": "", "User": "1001", "AttachStdin": true, "AttachStdout": true, "AttachStderr": true, "ExposedPorts": { "8080/tcp": {} }, "Tty": true, "OpenStdin": true, "StdinOnce": true, "Env": [ "ADMIN_PASSWORD=Prolim@123", "DATABASE_ENDPOINT=mysql://prolim:prolim123@devicedata.cfgwpu5nkbcz.us-east-1.rds.amazonaws.com:3306/mendix-farming", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=en_US.UTF-8", "LC_ALL=en_US.UTF-8", "PYTHONPATH=/opt/mendix/buildpack/lib/:/opt/mendix/buildpack/:/opt/mendix/buildpack/lib/python3.6/site-packages/", "HOME=/opt/mendix/build", "PORT=8080" ], "Cmd": null, "Image": "digitalfarming", "Volumes": null, "WorkingDir": "/opt/mendix/build", "Entrypoint": [ "/opt/mendix/build/startup", "/opt/mendix/buildpack/buildpack/start.py" ], "OnBuild": null, "Labels": { "Author": "Mendix Digital Ecosystems", "maintainer": "digitalecosystems@mendix.com" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "0da4d071b60399e3bee33f4621d02a2042166fa5aca8c38ed8fcf9f96b808e73", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "8080/tcp": null }, "SandboxKey": "/var/run/docker/netns/0da4d071b603", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "86c608514f95ea3505ab2e57cb6f2cdce554cb630105205781431cb088996db5", "Gateway": "172.17.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "MacAddress": "02:42:ac:11:00:02", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "NetworkID": "3f0d58d241753a5ebcdfae1a890afce68526602afb61fe392aac650f8980c6ab", "EndpointID": "86c608514f95ea3505ab2e57cb6f2cdce554cb630105205781431cb088996db5", "Gateway": "172.17.0.1", "IPAddress": "172.17.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:11:00:02", "DriverOpts": null } } } } ]  
asked
1 answers
4

I am no docker expert, but I do not see any published ports in the config json: "8080/tcp": null
try adding -p 8080:8080 to the docker container run command

answered