Multiple containers for BeamNG.tech

Does it exist any way to set up two or more BeamNG.tech containers, making available multiple ports for beamngpy connection? I mean, run two or more simulations in parallel?

Hello, that should be possible, what did you try so far? We provide the Docker template in the tech/docker directory of BeamNG.tech installations, for other containers you should be able to edit the BNGPY_PORT environment variable set in the .env file correspondingly.

EDIT: There is a mistake in the template .env file, you also need to replace the BNG_EXTRA_ARGS with this line (will be fixed in next release):

BNG_EXTRA_ARGS="-tcom -tcom-listen-ip $BNGPY_HOST -tport $BNGPY_PORT"

As the title asks about containers I explained the Docker solution first, but you should also be able to run multiple BeamNG instances without virtualization if they do not share the user path.

BinLinux/BeamNG.drive.x64 -userpath ~/.local/share/BeamNG/instance1 -tcom -tport 25252
BinLinux/BeamNG.drive.x64 -userpath ~/.local/share/BeamNG/instance2 -tcom -tport 25253
...
1 Like