Accessing SMB network path

codesolve
Sat, 22 Mar 2025 11:48:24 +0000
Docker Desktop

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.

3 posts - 3 participants