docker-api
docker-api copied to clipboard
Example needed 'add-host'
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
]
}
})