This is a simple Docker container that allows you to run Multipaint on macOS by encapsulating the application and its dependencies. XQuartz is used to display the GUI.
-
XQuartz: after installation, enable "Allow connections from network clients" in the XQuartz security settings and reboot your machine to apply the changes, finally type xhost +localhost in your terminal to allow connections from localhost. Further instructions can be found here.
Remember to run (if needed)
xhost +localhost
- Pull the Docker image
docker pull tznurmin/multipaint:latest
Now you have the container image. In order to load and save your work, you'll mount a directory inside your filesystem. A directory named temp is used in this example: use mkdir name_of_your_directory in terminal to create one.
- Run the container and mount temp from your current working directory
docker run --rm \
-e DISPLAY=host.docker.internal:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$(pwd)/temp:/app/savedisk" \
--name multipaint-container \
tznurmin/multipaint:latest
- Clone the repository
git clone https://github.com/tznurmin/multipaint-container.git
- Build the image
cd multipaint-container/df && docker build -t multipaint .
- Run the container
docker run --rm \
-e DISPLAY=host.docker.internal:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$(pwd)/temp:/app/savedisk" \
--name multipaint \
multipaint
Remember to create a directory (e.g. temp) for your images.
- Can't connect to X11 window server using 'host.docker.internal:0' as the value of the DISPLAY variable.
Fix it by allowing the connections from localhost
xhost +localhost