MagicDNS resolution fails when running inside docker

I am running tailscale inside docker, when i try to ping any of my machines by their name the ping fails giving Name or service not known

The tailscale bugreport outputs the following

user bugreport: BUG-eda763d395610760c93315317409b920013359249d5d1e1d77026ea8fe5181e7-20230705203058Z-b965faca85656897 user bugreport hostinfo: {"IPNVersion":"1.44.0-t5d008cd83-g6dac82fa0","OS":"linux","OSVersion":"5.19.0-46-generic","Container":true,"Distro":"debian","DistroVersion":"9.13","DistroCodeName":"stretch","Desktop":false,"Hostname":"1011b277d97b","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.20.5-ts40dc4d8"} user bugreport health: multiple errors: dns-os: getting OS base config is not supported dns: getting OS base config is not supported user bugreport node info: nodeid="nodeid:1f366ea116046d" stableid="nnajoi6CNTRL" expiry="2024-01-01T20:11:12Z" user bugreport public keys: machine="mkey:cc3f67d1746beaf192881ddc1b023a50e299f7f9f9643db1c4a85f6f2d845c20" node="nodekey:f7ca8b675dbe7d873216a4de1f1679dd28ba30464e7d3013c196797c749f3d02" BUG-eda763d395610760c93315317409b920013359249d5d1e1d77026ea8fe5181e7-20230705203058Z-b965faca85656897

Any help on the config that can get magicdns to work inside docker ?

I tired adding tailscale dns and dns search to docker when running but same result