droidus
September 12, 2023, 7:17pm
1
I am running syncthing in a docker container. I am running version 1.23.6. For my android phone, the device says things like “no recent network activity”, and “cannot assign requested address”.
How do I resolve this?
bt90
(Bt90)
September 12, 2023, 7:38pm
2
The problem is that both nodes are unable to gather their own IPs. The easiest solution would be to switch the network mode of your docker container:
# Docker Container for Syncthing
Use the Dockerfile in this repo, or pull the `syncthing/syncthing` image
from Docker Hub.
Use the `/var/syncthing` volume to have the synchronized files available on the
host. You can add more folders and map them as you prefer.
Note that Syncthing runs as UID 1000 and GID 1000 by default. These may be
altered with the `PUID` and `PGID` environment variables. In addition
the name of the Syncthing instance can be optionally defined by using
`--hostname=syncthing` parameter.
To grant Syncthing additional capabilities without running as root, use the
`PCAP` environment variable with the same syntax as that for `setcap(8)`.
For example, `PCAP=cap_chown,cap_fowner+ep`.
## Example Usage
**Docker cli**
This file has been truncated. show original
1 Like