Since we may have to modify dockerfile or something, we choose use this repo from source.
-
download and cd to repo dir
-
python3 setup.py install
-
ue4-docker build 4.19.1 --cuda=10.1 --exclude=ddc
you must specify cuda arg to use cudagl image in my test, ddc must be disabled with exclude arg.
- It seems ue4-engine is enough for use.
the default user is ue4 and you can't change to root since there are no root user password.
If you want to use sudo, need docker exec --user=root -it --privileged container_name bash
UE4Editor is in ~/UnrealEngine/Engine/Binaries/Linux, must run with non-root user...
to run UE4Editor, libxrandr2 and x11-xserver-utils must be installed manually if you don't want to modify this repo
- clone ue4 source code is slow, you may want to add proxy before cloning use git config to setup otherwise will meet handshake error
Looking for a place to start? Check out the Unreal Containers community hub for implementation-agnostic information on using the Unreal Engine inside Docker containers, and then head to the comprehensive ue4-docker documentation to view details specific to using the ue4-docker project.
The ue4-docker Python package contains a set of Dockerfiles and accompanying build infrastructure that allows you to build Docker images for Epic Games' Unreal Engine 4. The images also incorporate the infrastructure from ue4cli, conan-ue4cli, and ue4-ci-helpers to facilitate a wide variety of use cases.
Key features include:
- Unreal Engine 4.20.0 and newer is supported.
- Both Windows containers and Linux containers are supported.
- Building and packaging UE4 projects is supported.
- Running automation tests is supported.
- Running built UE4 projects with offscreen rendering is supported via NVIDIA Docker under Linux.
Resources:
- Documentation: https://docs.adamrehn.com/ue4-docker/
- GitHub repository: https://github.com/adamrehn/ue4-docker
- Package on PyPI: https://pypi.org/project/ue4-docker/
- Related articles: https://adamrehn.com/articles/tag/Unreal%20Engine/
- Unreal Containers community hub: https://unrealcontainers.com/
- Development channel on the Unreal Containers Community Discord server: https://discord.gg/46CJg9fyJ9
See the file CONTRIBUTING.md for guidelines on how to contribute to the development of ue4-docker.
Copyright © 2018 - 2021, Adam Rehn. Licensed under the MIT License, see the file LICENSE for details.
Unreal and its logo are Epic Games' trademarks or registered trademarks in the US and elsewhere.
Docker and the Docker logo are trademarks or registered trademarks of Docker in the United States and other countries.