Docker HOSTNAME

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Is there any way via the GUI to set the applications hostname?

I have tried changing it 700 ways AFTER it is made but nothing works. So I figure it has to be set on creation.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Container names are immutable after creation. If you want to change it, destroy and recreate the container with the new name, keeping the old settings.
 

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Is there any way to do this through the web interface or is the only way CLI with the -h option?
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
TO be clear:
Containers do not have a hostname with the official apps, only an internal hostname which is randomised. and a servicehostname which is based on the name you give the App. However: Both are only for internal K8S use.

Containers are not directly available on either seperate IP's or seperate hostnames from the outside.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Is there any way to do this through the web interface or is the only way CLI with the -h option?
I've no idea what you're talking about because only k8s is officially supported and normal docker is not, -h option is not a thing within k8s.
 

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Ahh ok soo... Is there any way to specify the MAC address on creation?
Seems to be completely random.
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
Ahh ok soo... Is there any way to specify the MAC address on creation?
Seems to be completely random.
What are you using?
THe big blue button with the option do directly give ip's to containers?
Thats mostly a dirty hack ix made to please people and shouldn't actually be used in any sane scenario. Don't expect many features to be added for it either.
 
Top