Unity Docker

The easiest way (in my opinion) to test the navigation2 stack with turtlebot3 and unityros2 is to use our precompiled docker image from DockerHub. Navigate to /UnityRos2/docker/turtlebot3navigation folder and run docker-compose up command to start docker building. The first time it’s will take about an hour. Docker images for Unity (Not affiliated with Unity Technologies) Source of CI specialised docker images for Unity, free to use for everyone. The wedding pdf free download. Please find our website for any related documentation.

So whilst learning on how to make Unity games, I got curious of what would be a good way to test, share and get feedback on.


There are various websites that will host the games for you but I like the idea of making a game that’s Open for people to contribute to, learn from and ultimately play.

So this is where I went down the path of looking into using Docker to host a WebGL game. After searching the web I came across a few others that looked to do something similar.

  1. As a follow up to the previous Multiplayer Overview video ( ), I wanted to do a small tutorial on how you can go about self host.
  2. Use docker run -it -name MyUnityDockerContainer -p 8080:5900 my-unity-image:tagname to create the Docker container and enter it with your shell. The -p switch exposes a port from the Docker container to the host machine so we can communicate over the network interface.

So to start, I've built and exported the Unity game and kept a simple file structure.

This allowed me to easily copy necessary files with a single COPY within the Dockerfile.

To host game within Docker and keeping things simple, I've used Nginx as the base image as the HTML files only needed served.

But the default configuration needed to be updated to point to the copied files. This resulted in the following for the Nginx configuration, just using the index.html created by Unity and update the location root to where the files were copied to.

Next part is the Dockerfile itself, putting all the pieces together to host the WebGL game.

Finally, using Docker Compose, I can finally launch the Docker image and play the game within a browser with a single docker-compose -d up

Unity Docker Windows

All the code can be found here.

Unity Docker Gitlab

Hope this helps anyone who is curious about doing a similar thing and I'll hope to improve this as I learn more about Unity, WebGL and Docker.