Search Unity

Standalone build on a windows container

Discussion in 'Testing & Automation' started by lucas_ant, Mar 16, 2021.

  1. lucas_ant

    lucas_ant

    Joined:
    Feb 22, 2021
    Posts:
    5
    I'm trying to run a standalone build on a windows container using Docker and the mcr.microsoft.com/windows/servercore:ltsc2019 container.

    The .exe runs flawlessly in my local computer, but it inmediately closes when running inside the container. No logs or anything. I am able to run other .exe files, but any unity build does the same.

    Curious if anyone else has experimented with a Windows-based container and had success?

    Thank you!
     
  2. Kleptine

    Kleptine

    Joined:
    Dec 23, 2013
    Posts:
    282
    We've tried to get the Unity Editor to run in a Windows Docker and had the exact same behavior. Instant process exit, no explanation, nothing in the logs or even the event trace (that we could find).

    From reading around on the forum this seems to be similar to other's experiences, and generally:
    - Unity for Docker isn't supported, and generally 'best effort'
    - Docker for Windows is kind of.. messy (it's not what Docker was really built for)

    We eventually abandoned this and focused entirely on Unity linux docker, which is still buggy as heck but suits us well enough.
    https://johnaustin.io/articles/2020/running-unity-20201-in-docker