Search Unity

Unity accelerator in docker container no log file

Discussion in 'Unity Accelerator' started by wxl514571352, May 19, 2020.

  1. wxl514571352

    wxl514571352

    Joined:
    May 19, 2020
    Posts:
    2
    We started unity-accelerator through docker, but after starting, in the CacheDir directory, the log file could not be found. And tried to find the log file in the entire container, but also did not find the unity-accelerator.log file.

    Start command:
    Code (Boo):
    1. docker run -p 10081:10080 -d -v "/home/unity/accelerator/test:/agent" unitytechnologies/accelerator
    2.  
    3. Search log files at the root of the container:
    4. [code=Boo]root@53ff7db23693:/# find . -name "*.log"
    5. ./var/log/apt/term.log
    6. ./var/log/apt/history.log
    7. ./var/log/dpkg.log
    8. ./var/log/alternatives.log
     
  2. wxl514571352

    wxl514571352

    Joined:
    May 19, 2020
    Posts:
    2
    I found the problem,just run:

    docker run -p 10081:10080 -d -v "/home/unity/accelerator/test:/agent" unitytechnologies/accelerator run -persist /agent
     
  3. gregoryh_unity

    gregoryh_unity

    Unity Technologies

    Joined:
    Oct 1, 2018
    Posts:
    50
    An update today will change how you set the persist path and other options. The equivalent of the above is:

    docker run -p 10081:10080 -d -v "/home/unity/accelerator/test:/agent" -e UNITY_ACCELERATOR_LOG_STDOUT=false unitytechnologies/accelerator

    Though the persist path should default to "/agent", setting it explicitly is fine -- and of course you can change it to something else if you'd prefer. Use -e UNITY_ACCELERATOR_PERSIST=/agent

    You can find more information at these links as well:
    https://forum.unity.com/threads/new-config-environment-variables.904700/
    https://hub.docker.com/repository/docker/unitytechnologies/accelerator