'access wireguard network from docker container

I have two servers that connected to each other with Wireguard.

server_1 can access server_2 services with Wirguard ips.

I have a docker container on server_1 that I want it to access server_2 service via Wireguard.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source