- Clone AirSim repo
git clone https://github.com/microsoft/AirSim.git
-
Install nvidia-docker 2.0 per instructions here
-
Build image based on Ubuntu 18.04
python build_airsim_image.py \
--base_image=nvidia/cudagl:10.1-devel-ubuntu18.04 \
--target_image=airsim_binary:10.1-devel-ubuntu18.04
- Verify image is now available
docker images | grep airsim
- Go to directory
cd AirSim/docker
if you have not - Replace the
settings.json
file with your desired configuration fromairsim settings
folder - Execute
./download_blocks_env_binary.sh
to get default Blocks environment - Execute
./run_airsim_image_binary.sh airsim_binary:10.1-devel-ubuntu18.04 Blocks/Blocks.sh -windowed -resX=1280 -resY=720
to run default Blocks environment - Look for more environment in the Microsoft AirSim Linux 1.2.0 release page
- For headless mode append
-- headless
option. An example would be./run_airsim_image_binary.sh airsim_binary:10.1-devel-ubuntu18.04 Blocks/Blocks.sh -windowed -resX=1280 -resY=720 -- headless
Modified from reference Microsoft AirSim repository docker readme