Skip to content

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

@davidsandilands

Description

@davidsandilands

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions