Hiddify-Manager icon indicating copy to clipboard operation
Hiddify-Manager copied to clipboard

Docker forwards too many ports. Too much memory is consumed.

Open nd4y opened this issue 1 year ago • 2 comments

Describe the bug When running the bash command bash <(curl https://i.hiddify.com/docker/latest) ( attached in the documentation at the link https://hiddify.com/manager/installation-and-setup/Install-Hiddify-using-Docker/ ) the docker process takes up all the memory on the host and the hiddify container does not start

docker-compose.yml contains the following configuration

services:
  hiddify:
   <--- TRUNCATED --->
    ports:
      - 443:443
      - 80:80
      - "11000-60000"  #for custom protocols like hysteria tuic wiregaurd

The problem is the huge number of ports that are forwarded to the container. With this number of ports, docker on my host requested about 32GB of RAM

The problem is reproduced on: Ubuntu 22.04.4 LTS Docker version 27.0.3, build 7d4bcd8

To Reproduce Steps to reproduce the behavior:

  1. execute bash <(curl https://i.hiddify.com/docker/latest) ( there is currently a problem with latest tag. Applied the workaround described in https://github.com/hiddify/Hiddify-Manager/issues/4726 )

Expected behavior There are a huge number of ports not forwarded in docker-compose.yml

Screenshots I have attached a recording of what the problem looks like. bandicam2025-01-0801-54-48-567-ezgif com-video-to-gif-converter

Additional context If you want to give a user access on "any port", you can use network_mode: "host"

nd4y avatar Jan 07 '25 23:01 nd4y

thanks for the info we will look into it

litoosh13 avatar Jan 10 '25 14:01 litoosh13

Also getting "manifest unknown" when trying ti pull ghcr.io/hiddify/hiddify-manager:latest

royaltongue avatar Jan 13 '25 05:01 royaltongue