Docker image for pcm720/udpfsd — a Go UDPFS/UDPBD server
that serves filesystems and disc images to a PlayStation 2 over the network (used with
Neutrino).
The image is built with CGO + libchdr, so on-the-fly decompression of CHD, CSO, and ZSO disc images is compiled in.
mkdir -p data # put files/images to serve here
docker compose up -d # builds the image and starts the server
The server opens two UDP sockets 62966 (discovery) and 62967 (data), and serves the contents of ./data.
Both ports are fixed by default (upstream otherwise picks a random data port); override them with PORT / BIND.
The Dockerfile installs the upstream release with go install; no source checkout is needed.
docker compose build
# or, pin a specific upstream version:
docker build --build-arg UDPFSD_VERSION=v0.1.6 -t gordallott/udpfsd .
UDPFSD_VERSION accepts anything go install …@<ref> accepts — a release tag (default
latest), main, nightly, or a commit hash.
Configured entirely via environment variables (see docker-compose.yml):
| Variable | Description |
|---|---|
FSROOT | Directory to serve files from (image default: /data) |
BDPATH | Path to a block device / disc image to serve |
SECTOR_SIZE | Block-device sector size in bytes (default 512) |
RO | Set to 1 for read-only mode |
VERBOSE | Set to 1 for verbose logging |
METRICS / METRICS_PERIOD | Enable stats logging / logging period (e.g. 1m) |
NO_COMPRESSION | Set to 1 to disable transparent CHD/CSO/ZSO decompression |
COMPRESSION_CACHE_SIZE | Cached blocks per file (default 32) |
PEER_TIMEOUT | Idle-peer removal timeout (e.g. 1h) |
The compose file uses network_mode: host. Even though both ports are now fixed (discovery
62966, data 62967), PS2 client discovery relies on UDP broadcast on the LAN, which does
not reach a container behind Docker's bridge network / NAT. Host networking is the reliable
default. (The fixed ports do mean that if you understand your setup you could switch to bridge
networking with explicit 62966/udp + 62967/udp port mappings, but broadcast discovery may
still not work.)
On a multi-homed host (e.g. both wired and Wi-Fi on the same LAN), set BIND to the IP of
the interface the PS2 can reach, e.g. BIND=192.168.1.100, to avoid duplicate packets and
client timeouts.
The image packages upstream udpfsd; see its LICENSE.
Content type
Image
Digest
sha256:6ad8dc9e6…
Size
30.8 MB
Last updated
4 months ago
docker pull gordallott/udpfsd-docker