HUB
Sign inSign up

gordallott/udpfsd-docker

By gordallott

•Updated 4 months ago

Image
1

682

gordallott/udpfsd-docker repository overview

⁠udpfsd-docker

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.

⁠Quick start

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.

⁠Build

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.

⁠Configuration

Configured entirely via environment variables (see docker-compose.yml⁠):

VariableDescription
FSROOTDirectory to serve files from (image default: /data)
BDPATHPath to a block device / disc image to serve
SECTOR_SIZEBlock-device sector size in bytes (default 512)
ROSet to 1 for read-only mode
VERBOSESet to 1 for verbose logging
METRICS / METRICS_PERIODEnable stats logging / logging period (e.g. 1m)
NO_COMPRESSIONSet to 1 to disable transparent CHD/CSO/ZSO decompression
COMPRESSION_CACHE_SIZECached blocks per file (default 32)
PEER_TIMEOUTIdle-peer removal timeout (e.g. 1h)

⁠Networking

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.

⁠License

The image packages upstream udpfsd; see its LICENSE⁠.

Tag summary

Content type

Image

Digest

sha256:6ad8dc9e6…

Size

30.8 MB

Last updated

4 months ago

docker pull gordallott/udpfsd-docker