Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Running ML Agents inside Docker

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

  1. sahandrez


    Jan 15, 2020

    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?

    createtheimaginable likes this.
  2. vincentgao88


    Unity Technologies

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