Howdy,
We’re trying to bring up a DO docker host with 200 containers for testing our agent application and we cannot figure the network part. Let me explain:
I think we can do this with docker Host networking. My thoughts are (forgive my networking ignorance):
I know this is broken… where am i falling down.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @evertramos:
@hansen I think some code of how you are trying to do this set up would help us understand better.
I would suggest using Docker Compose with Swarn mode, but about networks… I would suggest you have a very strict way on naming containers and instead using
ip:portto connect to your containers, you usesever_name:portto connect to it and let the Docker do the network trick for you.Here is how you could use Docker Network:
1. Create a Docker Network
docker network create your_network_01As of Docker Network documentation
2. Use this network in your
docker-compose.ymlfile:networks: default: external: name: your-network-name3. Connect any Container to your network
docker network connect your_network_01 your_conteiner_nameAs of Docker Network documentation
Hope it helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.