My case:
By default, I cannot ping from container_A to container_B_1
The question: how to make that particular container (container_B_1) accessible as well from the default bridge network? In other words: to let it have 172.17.0.x IP (beside the 172.18.0.x IP). Just that one container.
I've tried this in my docker-compose.yml
But, gettting error: "Network-scoped alias is supported only for containers in user defined networks"
Thanks!
You could create your own network and specify it in your compose file:
Create your own network:
docker network create --driver bridge my_dev_network
you could verify by docker network ls
In your docker-compose.yml for the two containers (container A) and the other group of containers, specify the network you just created:
you could verify by docker network inspect my_dev_network
to see if all the containers have joined your own network