#install docker
sudo apt install docker.io
#install ros2-humble
sudo docker pull osrf/ros:humble-simulation #you can pull complete humble version(simulate is simple)
#start ro2humble and mout directory
#[recommend,specify /tmp/.X11 and DISPLAY]
docker run -it --restart=always --name ros2humble -v /home/tom/Tom/DockerContent/nav2_ws(your docker path):/home/tom/Tom/DockerContent/nav2_ws(your local path) -v /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY=$DISPLAY osrf/ros:humble-simulation /bin/bash
#look ro2humble container id
docker ps
#go into container ros2humble
docker exec -it containerID /bin/bash
#example:docker exec -it 726c5f11ac99 /bin/bash #ros+navigation
#init ros workspace (I init directory "**mypath**/nav2_ws as" as my workspace)
##create nav2_