Docker Container with Ubuntu and ComfyUI -- Problem to access webpage ERR_EMPTY_RESPONSE -- Solution

Hi,

on Docker I created a UBUNTU container and installed ComfyUI.

if you have problems accessing the web interface and your browser receives “ERR_EMPTY_RESPONSE” the problem is that when you enable a port on DOCKER with -p 8188:8188 the binding does not occur on 127.0.0.1 but on 0.0.0.0 and therefore the ComfyUI web server does not expose the right connection.

The solution is simple run:

python3 main.py --listen 0.0.0.0

this is the output you get:

Checkpoint files will always be loaded safely.
pytorch version: 2.7.0.dev20250226+cu124

ComfyUI version: 0.3.18
[Prompt Server] web root: /home/ubuntu/ComfyUI/web

Import times for custom nodes:
0.0 seconds: /home/ubuntu/ComfyUI/custom_nodes/websocket_image_save.py

Starting server

To see the GUI go to: http://0.0.0.0:8188

remember of course to create the container with the parameter -p 8188:8188 to export the port to the outside.

bye

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.