I’ve had issues before with docker and wireguard. Solution is to add this iptables entry.

iptables -I DOCKER-USER -o wg0 -j ACCEPT