I created some network with these command :
docker network create --driver bridge my-network
and I have some docker image that already created with an dockerfile.
In docker documentation they said you can connect your container with this command:
docker run --network=my-network -itd --name=mycontainer busybox
in my nodejs I need to pass these args to my run function:
let options = ['some option']
docker.run('mycontainer', [], process.stdout, { Env: options }).then(data => {
console.log(data)
}).catch(err => { console.log(err) })
so return to my main question : How to join a docker to docker network ?