https://github.com/pboardman/dosbox-docker
dosbox docker image
https://github.com/pboardman/dosbox-docker
Last synced: 3 months ago
JSON representation
dosbox docker image
- Host: GitHub
- URL: https://github.com/pboardman/dosbox-docker
- Owner: pboardman
- Created: 2016-08-23T20:46:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-23T20:47:08.000Z (almost 9 years ago)
- Last Synced: 2025-01-23T18:50:11.040Z (4 months ago)
- Size: 0 Bytes
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dosbox in a container
This Dockerfile will create an image from which you can run a dosbox container.
The dosbox config file is located in the /root/.dosbox/ volume, and the /dosbox volume will be where you write your data.
If you write anywhere but in those two directory (/dosbox and /root/.dosbox/) you will lose that data once you destroy the container.## How to use it
You can start a dosbox container with those 2 commands:
``` xhost + ```
``` docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /path/on/your/system/data:/dosbox -v /path/on/your/system/config:/root/.dosbox lacsap/dosbox ```
- replace ``` /path/on/your/system/data ``` and ``` /path/on/your/system/config ``` with any directory on your system where you wish to store the data and config of dosbox.
- after dosbox is launched, type ``` MOUNT C /dosbox ``` in the prompt to mount your data volume in dosbox. (you can automate this by putting the mount command at the end of dosbox's config file)## Notes
- When you are done using dosbox you should probably run ``` xhost - ``` to re-enable the access control to the X server.
- This will launch dosbox in a GUI so you can't run this without an X server.