Skip to content

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

@nd4y

Description

@nd4y

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 Cannot Install Docker Container #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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions