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

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

Open
nd4y opened this issue Jan 7, 2025 · 2 comments
Open

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

nd4y opened this issue Jan 7, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@nd4y
Copy link

nd4y commented Jan 7, 2025

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"

@litoosh13
Copy link

thanks for the info we will look into it

@litoosh13 litoosh13 added the bug Something isn't working label Jan 10, 2025
@royaltongue
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants