Docker Networks¶
Container networking refers to the ability for containers to connect to and communicate with each other, or to non-Docker workloads.
To create a network, run:
If using Docker Swarm across multiple computers, you'll need to do:
to allow the multiple Docker Daemons to communicate with each other.
Now, you can connect Docker containers to this network using:
or disconnect with:
In your docker-compose file, you can also specify the networks there as such:
YAML
version: '3.7'
services:
frb-master:
image: chimefrb/frb-master:latest
networks:
- frb_master_network
networks:
frb_master_network:
Now, you can see all the connected services with: