Connect a device to tailscale using wireguard credentials

I did find this other post discussing a similar issue. I don’t think this solution will work for me.

The wireguard connection i want to add is a docker container. Connecting to it gives me privileged access to other docker containers on that machine.