diff --git a/Dockerfile b/Dockerfile index cd9f5c2..fb07d4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -105,9 +105,10 @@ # After this installation, command Xorg and xinit can be used in the container # if you need full ubuntu desktop environment, the line below should be added. # ubuntu-desktop \ -RUN apt-get update && apt-get install -y \ - xinit && \ +RUN apt-get update && apt-get install -y xinit && \ rm -rf /var/lib/apt/lists/* +# xserver-xorg-legacy && \ +#RUN sed -i "s/allowed_users=console/allowed_users=anybody/;$ a needs_root_rights=yes" /etc/X11/Xwrapper.config COPY cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb /tmp/cuda-repo-ubuntu1804-11-2-local_11.2.2-460.32.03-1_amd64.deb RUN cd /tmp && \ @@ -168,7 +169,7 @@ RUN wget https://github.com/novnc/noVNC/archive/v1.2.0.zip && \ unzip -q v1.2.0.zip && \ rm -rf v1.2.0.zip && \ - git clone https://github.com/novnc/websockify /noVNC-1.2.0/utils/websockify + git clone -b v0.9.0 https://github.com/novnc/websockify /noVNC-1.2.0/utils/websockify # Xorg segfault error diff --git a/run.sh b/run.sh index 866938b..cf569f1 100755 --- a/run.sh +++ b/run.sh @@ -4,12 +4,14 @@ -p 7000:5900 \ -p 2000-2002:2000-2002 \ -v /dev/shm:/dev/shm \ + -v /run/udev:/run/udev \ + -v /run/dbus:/run/dbus \ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=compute,graphics,display \ -e QT_X11_NO_MITSHM=1 \ -e SDL_VIDEODRIVER=x11 \ -e VNCPASS=kobaken \ -e RESOLUTION=1920x1080 \ - --shm-size=512mb \ + --shm-size=8gb \ --net bridge \ --name carla0910a carla0910a