We all would have used Docker network.
Create a docker bridge network, and yea.. Pretty much your docker containers inside the network can communicate. And it has an inbuilt DNS. Cool...
But have you tried making LXC containers and docker containers be in a single network and make them communicate? Because docker network will only support docker containers.
Here, I'll demonstrate how container networking works and write a manual script which purely uses linux networking concepts and make LXC and docker be in the same bridge network and make them communicate.
Key takeaways:
How docker network works.
Live demonstration of (re-inventing) docker network concepts but for LXC - Docker communication.