Search Unity

Docker and Unity on Linux

Discussion in 'Linux' started by jodasopa, Aug 24, 2016.

  1. jodasopa

    jodasopa

    Joined:
    Aug 23, 2012
    Posts:
    11
    Hi,

    I'm currently trying to activate my Unity license in a docker container. However it is failing:

    $ /opt/Unity/Editor/Unity -quit -batchmode -nographics -serial XXX -username "XXX" -password "XXX"
    _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
    Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted


    I am able to build projects via commandline - which is nice, but they are built with a personal license instead of our professional one.

    Any hints on how to fix this? Has anyone tried to run unity in docker?
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Batch mode in the linux editor currently requires being able to access a running X session (even with -nographics, known issue) - it looks as though it isn't able to do so from your docker container.
     
  3. jodasopa

    jodasopa

    Joined:
    Aug 23, 2012
    Posts:
    11
    I think thats strange given the fact, that the editor is able to successfully run custom commands and build projects.
     
  4. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
  5. nloewen

    nloewen

    Joined:
    Apr 29, 2015
    Posts:
    5
    You can work around the need for an X server by running Unity with Xvfb