Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use docker run, but http://localhost:8080/ is not work. #11

Open
fluber opened this issue Mar 17, 2024 · 1 comment
Open

use docker run, but http://localhost:8080/ is not work. #11

fluber opened this issue Mar 17, 2024 · 1 comment

Comments

@fluber
Copy link

fluber commented Mar 17, 2024

docker run -p 8080:80 -p 8443:443 -p 102:102 --name softplc fbarresi/softplc:latest-linux
Initializing plc service...
plc server started on port 102!
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:8080
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app

but use browser to http://localhost:8080/ not work. can't see anything.

@jskang-cle
Copy link

You should run

docker run -p 8080:8080 -p 8443:443 -p 102:102 --name softplc fbarresi/softplc:latest-linux

Since the internal server is listening on port 8080, you should bind to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants