Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Running ML Agents inside Docker

Discussion in 'ML-Agents' started by sahandrez, Mar 3, 2020.

  1. sahandrez

    sahandrez

    Joined:
    Jan 15, 2020
    Posts:
    1
    Hello,

    I am having trouble launching an executable of a Unity ML Agents environment inside Docker. When I launch the executable inside the Docker with the following command, I receive a timeout error.

     env = UnityEnvironment(file_name=env_name, worker_id=0, no_graphics=True, docker_training=True) 

    I tried with docker_training=True, and the same thing happens. I have mapped the base port of Unity ML Agents (5005) in the Docker container to a port on the host machine and have installed xvfb inside the Docker.

    Is there anything else I am missing? The Unity executable is built on a Windows machine against a Linux platform. Is it possible that something is wrong with the executable?

    Thanks,
    Sahand
     
    createtheimaginable likes this.
  2. vincentgao88

    vincentgao88

    Unity Technologies

    Joined:
    Feb 7, 2018
    Posts:
    21
    Hi @sahandrez, unfortunately we've deprecated our docker solution, and it probably doesn't work for now.