After looking at the screenshot provided by the OP, it seems @MarkRotteveel's comment is right.
Namely, the OP is running Docker on Windows, probably using Docker Toolbox for Windows (the legacy distribution based on docker machine
), and it happens that in this case, docker run -p 8080:8080 …
won't expose the service to 127.0.0.1:8080
on the Windows host, but to a different IP address.
For details, see this page of the online doc and that other page.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…