docker create instead of docker run

Daniel Brunner
2018-11-16 23:52:09 +01:00
parent b28a7092ef
commit c02d112515

@@ -1,9 +1,9 @@
This is the most simple way to get this tool up and running. This method downloads the newest image from docker hub. Please be aware that there are known issues with the docker image (Bugs [#59](https://github.com/0xFEEDC0DE64/QtZeiterfassung/issues/59), [#60](https://github.com/0xFEEDC0DE64/QtZeiterfassung/issues/60), [#61](https://github.com/0xFEEDC0DE64/QtZeiterfassung/issues/61))!
When launching the first time, a docker container must be setup correctly. To give docker access to the host X11, we forward the X11 sockets.
Prepare a docker container with zeiterfassung:
```
docker run \
docker create \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--name zeiterfassung \
@@ -13,4 +13,4 @@ docker run \
If this fails because of permission problems to X11, try running `xhost +SI:localuser:root` before.
All further launches can be done with `docker start zeiterfassung`
Then launch the tool with `docker start zeiterfassung`