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

When a hostname is too long docker won't start #53

Open
davidsandilands opened this issue Feb 22, 2023 · 2 comments
Open

When a hostname is too long docker won't start #53

davidsandilands opened this issue Feb 22, 2023 · 2 comments

Comments

@davidsandilands
Copy link
Member

davidsandilands commented Feb 22, 2023

Describe the bug
In environments like azure where the hostname can be absurdly long "pe-server-0-d6a9f5.vhcpsckl41fedgadugqovud0sa.cwx.internal.cloudapp.net" docker will fail to start using the default value for hostname of the FQDN as per betadots/hdm#123.

To Reproduce
Use an server with a hostname FQDN with I think 24 characters or more. I'm not sure of the exact limit

Expected behaviour
The most reasonable thing I could find to do this was just using the shortened hostname. So I would suggest a check to ensure the FQDN does not exceed limits and if it does either failing or substituting in shortened name (with warning ? )

HDM Server (please complete the following information):
All versions

Additional context
betadots/hdm#123

@ekohl
Copy link
Member

ekohl commented Feb 22, 2023

We had a similar issue that caused us to revert back to short names elsewhere: voxpupuli/gha-puppet#26, which partially reverted voxpupuli/gha-puppet#22.

@tuxmea
Copy link
Member

tuxmea commented Feb 23, 2023

Is this related to Docker only? Does someone know if this might also be an issue when we use podman instead of docker?

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