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

Bug: gluetun port tcp 8888 bind: already in use #2540

Closed
atticusmatticus opened this issue Oct 24, 2024 · 5 comments
Closed

Bug: gluetun port tcp 8888 bind: already in use #2540

atticusmatticus opened this issue Oct 24, 2024 · 5 comments

Comments

@atticusmatticus
Copy link

atticusmatticus commented Oct 24, 2024

Is this urgent?

Yes

Host OS

macOS

CPU arch

Apple Silicon

VPN service provider

ProtonVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version v3.39.1 built on 2024-09-29T18:16:23.495Z (commit 67ae5f5)

What's the problem 🤔

After latest Docker Desktop update (v4.35.0) my typical way of pulling and starting up containers after a reboot failed:
docker-compose pull; docker-compose up -d --remove-orphans;

gave the following,

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:8888 -> 0.0.0.0:0: listen tcp4 0.0.0.0:8888: bind: address already in use

This command had worked as expected immediately before updating Docker Desktop. I tried completely killing docker and all associated processes, rebooting and rerunning the command but this error message always came up.

Share your logs (at least 10 lines)

There are no logs because gluetun won't start.

Share your configuration

gluetun:
  container_name: gluetun
  image: qmcgaw/gluetun:latest
  cap_add:
    - NET_ADMIN
  devices:
    - /dev/net/tun:/dev/net/tun
  ports:
    - 8888:8888/tcp # HTTP proxy
    - 8388:8388/tcp # Shadowsocks
    - 8388:8388/udp # Shadowsocks
    ## Port-mapped from a:
    - 5055:5055
    ## Port-mapped from b:
    - 7878:7878
    ## Port-mapped from c:
    - 8989:8989
    ## Port-mapped from d:
    - 8787:8787
    ## Port-mapped from e
    - 6767:6767
    ## Port-mapped from f
    - 8080:8080
    - 9090:9090
  volumes:
    - ~/gluetun_docker:/gluetun
  environment: # See https://github.com/qdm12/gluetun/wiki
    # ProtonVPN
    - VPN_SERVICE_PROVIDER=protonvpn
    - VPN_TYPE=wireguard
    # 
    - VPN_ENDPOINT_IP=###########
    - VPN_ENDPOINT_PORT=#####
    - WIREGUARD_PUBLIC_KEY=#########################=
    - WIREGUARD_PRIVATE_KEY=#################################=
    - WIREGUARD_ADDRESSES=##########
    #
    - TZ=America/Chicago
Copy link
Contributor

@qdm12 is more or less the only maintainer of this project and works on it in his free time.
Please:

@atticusmatticus
Copy link
Author

rolling back to docker desktop v4.34.3 fixes the issue temporarily.

@deboy69
Copy link

deboy69 commented Oct 27, 2024

Same issue on ubuntu not sure if its gluetun related or docker

3rd reboot seemed to fix. Hmmm

@qdm12
Copy link
Owner

qdm12 commented Oct 27, 2024

You have something else (old container, another container or a docker daemon bug) listening on port tcp 8888, that's a docker configuration issue and nothing to do with gluetun. Note you can change that port to another port in your ports: section for example 5678:8888/tcp

@qdm12 qdm12 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2024
Copy link
Contributor

Closed issues are NOT monitored, so commenting here is likely to be not seen.
If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project
which became too popular to monitor issues closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants