查看容器:
sudo docker ps -a
删除容器:
sudo docker rm NAMES(容器的名字)
下载镜像:
sudo docker pull rmus2022/server:v1.2.0
新建容器(create_container_client.sh):
sudo docker run -id --gpus all --name j_client --network host \
--cpus=9.73913 -m 8192M \
--privileged -v /dev:/dev -e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 \
-v /dev/bus/usb:/dev/bus/usb \
-v /dev/video0:/dev/video0 \
-v /dev/video1:/dev/video1 \
-v /dev/video2:/dev/video2 \
-v /dev/video3:/dev/video3 \
-v /dev/video4:/dev/video4 \
-v /dev/video5:/dev/video5 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/xcy/Desktop/shared:/shared \
jzian/s2r_pipeline:final
sudo xhost +
create_container_server.sh:
#sudo docker rm -f sim2real_server
sudo docker run -id --gpus all --name sim2real_server --network host \
--privileged -v /dev:/dev -e DISPLAY=$DISPLAY -e QT_X11_NO_MITSHM=1 \
-v /dev/bus/usb:/dev/bus/usb \
-v /dev/video0:/dev/video0 \
-v /dev/video1:/dev/video1 \
-v /dev/video2:/dev/video2 \
-v /dev/video3:/dev/video3 \
-v /dev/video4:/dev/video4 \
-v /dev/video5:/dev/video5 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/xcy/Desktop/shared:/shared \
rmus2022/server:v1.3.0
sudo xhost +
|