Replies: 2 comments 10 replies
-
Hi, I'm refreshing this discussion because I might be encountering a similar issue. I have a Trame application that runs successfully on my computer and opens a browser window with a GUI when I run it manually. The application is very simple, it displays a few text fields, buttons, and plotly-based line plots. I am now setting up a Dockerfile to build an image and run the application from a Docker container, which is basically as follows:
When I build the image and run the container sudo docker build -t gui-docker-image .
sudo docker run -p 8080:8080 gui-docker-image the application runs without crashing, but it does not open up a browser window with the GUI. This is the output when I run the container: ...
And to prevent your browser from opening, add '--server' to your command line.
App running at:
- Local: http://localhost:8080/
- Network: http://127.0.0.1:8080/
Note that for multi-users you need to use and configure a launcher. Usually at this point the terminal is hanging, the browser window is open, and I have to close the port with This time the terminal is not hanging and the browser window does not open. What am I missing? From the answer above,
I did not understand what I would need to change to make it work, what should be set to 127.0.0.1 in my Dockerfile and/or commands I use to build the image and run the container. Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to containerize a trame app but I'm getting
[Errno 99] error while attempting to bind on address ('::1', 8080, 0, 0): cannot assign requested address
when trying to access to the served content.I checked that the port is actually free using
lsof -i :8080
and I tried to start the server using two other random ports (8181 and 27000) but I'm getting the same exception.I created a repo to reproduce: https://github.com/charlycou/test-trame-geovizpy
And open the application at localhost:80. Then check the logs.
Logs are in
/deploy/server/logs/launcher
directory.Does anyone have any ideas for solving this problem? I successfully run the example from the doc that use the same base image so it must be due to geovizpy.py
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions