This is a container for running Winbox when you don't want to install wine just for this.
sudo pacman -S xorg-xhostsudo apt install x11-xserver-utilssudo yum install xorg-x11-server-utils- Install XQuartz: https://www.xquartz.org
- From the XQuartz preferences, in the
securitytab, make sureAllow connections from network clientsis enabled then restart XQuartz.
xhost +local:xhost +localhostdocker run -it --rm --network=host --ipc=host -e DISPLAY=$DISPLAY frici/winbox
docker run -it --rm --network=host -e DISPLAY=host.docker.internal:0 frici/winbox
services:
winbox:
image: frici/winbox
container_name: winbox
restart: on-failure
network_mode: host
environment:
- DISPLAY=:0
- ipc=host
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- winboxdata:/winbox/
volumes:
winboxdata:Copy and paste then docker compose up
If you can't find your preferred version in dockerhub you can build it for yourself. For example version 3.40:
export WV=3.40docker build -f ./Dockerfile -t yourimagename:$WV . --no-cache --build-arg WV=$WV