I always liked to play Zsnes on my Windows PC until I realized that on Linux you had to install old i386 dependencies that didn't really want in my host. I created this docker to bypass those requirements.
You can either keep a daemonized docker and keep the save/rom files inside the container or you can pass a data volume redirecting to that same content without risking losing all when the docker stops (recommended).
The following is a sample command I would use to run Zsnes with sound and data volumes on a Ubuntu 16.04 host:
$ docker run --rm \ --device /dev/snd \ --device /dev/input \ --group-add audio \ -e DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /home/user/zsnes/roms:/roms \ -v /home/user/zsnes/files:/root/.zsnes \ crsilva/zsnes:latest
FROM debian:latest MAINTAINER Cristobal Silva <email@example.com> RUN dpkg --add-architecture i386 && \ apt-get update && \ apt-get install -y zsnes CMD ["/usr/bin/zsnes"]