Docker Community Forums

Share and learn in the Docker community.

Not able to hit URL

Hi ,
I am using docket on windows 10 machine with following docker version
PS C:\Windows\system32> docker -v
Docker version 18.09.2, build 6247962

1: I have a sample springboot swagger application which runs perfectly fine on local machine
2: I build the docker image successfully and try to run as follows
docker run -d d752b30f84df
1dd4a195fe3730ed5965d04600b607a5616d3a4e78dc575bceba4e89dbb14701
3: docker inspect 1dd4a195fe3730ed5965d04600b607a5616d3a4e78dc575bceba4e89dbb14701
I can see following ip information but I am not able to access my application with given port and ip (which is 8082)
E.g. XXX.XX.0.5:8082/swagger-ui.html
“Networks”: {
“bridge”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: null,
“NetworkID”: “28ca5dbd9053fb0e8cdfb7c88d6846b44f266b6423107097fbbe229bc37579ed”,
“EndpointID”: “b587a1d6b442f080f330ecafa115a7f56ab591b368116918e94f6d48405bf83b”,
“Gateway”: “XXX.XX.0.1”,
“IPAddress”: “XXX.XX.0.5”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:11:00:05”,
“DriverOpts”: null
}
}

Hi

you need to “forward” the port to the container.
docker run -d -p 8082:8082 d752b30f84df1dd4a195fe3730ed5965d04600b607a5616d3a4e78dc575bceba4e89dbb14701

Hi Martin,
I am still unable to start the application
docker run -d -p 8082:8080 1b1684cadc7f
d241f79fbb6412558424801e09810d0e4047a58983d4429e2694de771ad7c521
docker: Error response from daemon: driver failed programming external connectivity on endpoint mystifying_keldysh (91764d84ceccabad95e2ff03dcc6fe66f7124efb4e9d19ed6fad98ffb014b30b): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8082:tcp:172.17.0.4:8080: input/output error.

However my docker has port EXPOSE 8080 and I have also tried with following but no progress
docker run -d -p 8082:8082 1b1684cadc7f
4cab226301ba64b74604129aa315fc251d29f1a8d618b6588065554c72fa211b
docker: Error response from daemon: driver failed programming external connectivity on endpoint angry_fermi (68c14d3d3f6bc39014fd8e89d81cb1f119b0f52e63ca71a61f9f5da82b0885f0): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8082:tcp:172.17.0.4:8082: input/output error.

i belive you are on windows?
I have had this error before, just try and stop all containers, and restart docker

1 Like