Accessing SMB network path

setup: Running a python image on docker from macOS

The python code reads and processes data from an SMB share. The code works fine when run from the macOS system, but when run from container it fails with either: OSError: [Errno 113] No route to host or ConnectionRefusedError: [Errno 111] Connection refused depending on what change Is try and make

There is no firewall on the macOS and the SMB is a synology NAS, which also has no firewall running.

The main network is running on 172.1.0.0/16 with the NAS running on 172.1.4.98

The IP address has been coded into the code, so there is no DNS lookup issue.

How do I determine what is causing the problem, and more this issue forward? Any help or direction would be appreciated.

Check with docker network ls and docker network inspect <id> that there is no conflict. Usually Docker uses 172.x.x.x IP addresses internally.