Nothing happens with docker run
I'm very likely doing something wrong. When I run:
docker run -it --rm \
-v $(pwd):/root/project \
gableroux/unity3d:latest \ # Also tried specific versions
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity -projectPath /root/project
I get absolutely no output and I can't see any unity processes.
Just to be sure I was running the right path, I tried:
docker run -it --rm \
-v $(pwd):/root/project \
gableroux/unity3d:latest \
/opt/Unity/Editor/Unity -logFile /dev/stdout -manualLicenseFile /root/project/Unity_v2018.x.ulf
Which gave the expected:
Initiating legacy licensing module
(Unity:1): Gtk-WARNING **: cannot open display:
For the record, it seems like xvfb is swallowing errors, running:
docker run -it --rm \
-v $(pwd):/root/project \
gableroux/unity3d:latest \
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' -e /dev/stdout \
/potato/steak/corn
prints no error.
Environment and versions
Linux pierlucg-arch 4.20.13-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 27 19:10:28 UTC 2019 x86_64 GNU/Linux
Docker version 18.09.3-ce, build 774a1f4eee