Jump to content
Not connected, Your IP: 216.73.216.9
Sign in to follow this  
Grimmy57

ANSWERED Docker Gluetun server name

Recommended Posts

Hello,
I'd like to configure my Gluetun Docker container to connect only to a specific server name, but it throws an error when I start Gluetun.

If possible, how can I resolve this error?

Here is my configuration.
 

- SERVER_REGIONS= # optional, comma seperated list, no spaces after commas, make sure it matches the config you created
- SERVER_COUNTRIES= Netherlands # optional, comma seperated list, no spaces after commas, make sure it matches the config you created
- SERVER_CITIES= Amsterdam # optional, comma seperated list, no spaces after commas, make sure it matches the config you created
- SERVER_NAMES= Taiyangshou

 

Share this post


Link to post

Hey I recognize that cut/paste stack! Its mine lol! Glad to see that post still helping so many people!

I also run tied to a specific server that I like, so this WILL work. Its important to comment other "SERVER" request lines out with "#" I have found, like this:

      # - SERVER_COUNTRIES=United States                                        # specific to conf file
      # - SERVER_CITIES=New York,Chicago Illinois                               # tested successfully; some cities require state names
      - SERVER_NAMES=Taiyangshou                                                        # tested successfully

Also note its singular "SERVER_NAME" not plural "SERVER_NAMES" like you have. Good luck to you, I'm sure you'll get it figured out.

UPDATE 4/15/2026: The newer versions of the program use "SERVER_NAMES" (plural, not singular). My comment above is wrong; see my research below.

Share this post


Link to post

Hello and thank you for your reply.
I just solved my problem; the AirVPN server list wasn't up to date, so I updated my Gluetun client, and now the Taiyangshou server is working.

However, SERVER_NAMES is indeed plural, as indicated in the Gluetun configuration.

https://github.com/wolffcatskyy/gluetun-airvpn-edition

Share this post


Link to post
On 3/22/2026 at 9:06 AM, Grimmy57 said:

However, SERVER_NAMES is indeed plural, as indicated in the Gluetun configuration.


Naturally I verified this; the documentation agrees with you that the plural form is the correct form. Naturally I then became curious as to why my singular form version works so well then. It turns out that older versions of the code only allowed one server, and more recent upgrades enabled multiple servers to be listed. In order to upgrade to the plural form without borking the older, singular versions the author wrote the following excellent code:

Golang (serverselection.go line 461)
ss.Names = r.CSV("SERVER_NAMES", reader.RetroKeys("SERVER_NAME"))
To anyone reading this definitely use the plural form for new Docker containers, but you don't need to worry about older ones as the author has you covered! Thanks for the correction @Grimmy57

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...