Start Container by Docker
Initial setting
1
xhost +
Setting to enable to use vscode. rviz … in docker
Make Container
1
sudo docker run -it -v <local path>:/data --device=/dev/dri --group-add video --volume=/tmp/.X11-unix:/tmp/.X11-unix --env="DISPLAY=$DISPLAY" --env="QT_X11_NO_MITSHM=1" --name=<Container name> <Image name>:<Tag> /bin/bash
Check host-connect filer
1
cd /data
Get apt in container
1
2
sudo apt update
sudo apt upgrade
Tmux
1
apt install tmux & apt install git
Git
1
apt install git
Container
Start Container
1
sudo docker start -ia <Docker ID>
Check Running Container
1
docker ps
Check all container
1
docker ps -a
Check images
1
docker images
This post is licensed under CC BY 4.0 by the author.