docker-api icon indicating copy to clipboard operation
docker-api copied to clipboard

Example needed 'add-host'

Open StephanBeutel opened this issue 3 years ago • 0 comments

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
                        ]
                    }
                })

StephanBeutel avatar Mar 04 '22 15:03 StephanBeutel