Skip to content

Example needed 'add-host' #74

@StephanBeutel

Description

@StephanBeutel

In my docker run command I have to use this:

--add-host=host.docker.internal:host-gateway

How can I achieve the same functionality in docker.container.create?
Right now my code looks like this:

                docker.container.create({
                    Image: 'IMAGENAME',
                    name: bot_name,
                    Env: [envChannel],
                    HostConfig: {
                        Binds: [
                            envFolder + ":" + envLogFolder
                        ]
                    }
                })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions