Create a docker compose file in the folder where the LateX document will be edited. The docker-compose.yaml file shoud be:
services:
texstudio:
image: id8314/texstudio:latest
volumes:
# Change permissions of the following directories to 777
# ~/.config/texstudiodocker/ is used to store the configuration of TexStudio.
# mkdir -p ~/.config/texstudiodocker/
# chmod 777 ~/.config/texstudiodocker/
# The directory containing the project, in this case, the current directory also needs to have 777 permissions.
- ${PWD}:/home/dae/workspace:rw
- ~/.config/texstudiodocker/:/home/dae/.config/texstudio/:rw
ports:
- "5900:5900" # VNC port
environment:
- DISPLAY=:1
stdin_open: true
tty: true
# Change resolution to your screen resolution
command: >
bash -c "
Xvfb :1 -screen 0 1680x1050x16 &
sleep 1 &&
DISPLAY=:1 x11vnc -forever -usepw &
DISPLAY=:1 texstudio
"
If running in Linux, change folder permissions as described in the comments of the docker compose file (volumes section).
Then launch the container with
docker compose up -d
Then, using a VNC client (e.g. Remmina) connect to localhost:5900
The password is 1234
If running windows update host paths for the volumes.
Content type
Image
Digest
sha256:83089d1e6…
Size
2.5 GB
Last updated
about 2 years ago
docker pull id8314/texstudio:1.0