Simple Dockerfile to run ROS2 Humble. This can/will be updated according to new needs of the TFC team.
- Install Docker Setup -> just press next and install on the Docker installation
- If you are using Windows, install WSL2
- Install xLaunch (VcXsrv) for GUI interface availability
- If you are using Windows, run the win script
- If you are using Linux, run the lin script
- Download the docker file
- On the directory where the docker file is, open a terminal (not a wsl one) and write:
docker build -t <name_you_want_to_give_to_the_image> .
- Open xLaunch and select the display number as 0 and proceed with the pre-selected things
- Create on the same directory as the Dockerfile a directory /share/catkin_ws/src
- Create the container as follows:
docker run --name <name_you_want_to_give_to_the_container> -e DISPLAY=host.docker.internal:0.0 -it -v ${PWD}/share:/opt/share <name_of_your_image>
docker run --name <name_you_want_to_give_to_the_container> -e DISPLAY=host.docker.internal:0.0 -it -v $PWD/share:/opt/share <name_of_your_image>
For usefull info about docker commands, check this.
For a video tutorial of the basics, check this video.