Skip to content

Start container with hostname #311

@rahul-swaminathan

Description

@rahul-swaminathan

We are using GenericContainer and we need to set a specific hostname for our container. Right now, we are using withExtraHosts and hardcoding the ip address that the container always starts with. This creates 2 entries in /etc/hosts with the same ip address. We'd rather have a function withHostName that leverages

dockerClient.createContainerCmd().withHostName

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions