$ sudo docker pull osrf/ros:noetic-desktop-full
docker run -it \
--name m1noetic \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
osrf/ros:noetic-desktop-full \
rqt
docker run --name m1noetic -it osrf:noetic-desktop
docker images
docker container ls -a
docker run --name m1noetic -it osrf:noetic-desktop
xhost +local:`docker inspect --format='{{ .Config.Hostname }}' 2f630332c8e9`
docker start 2f630332c8e9
docker exec -it m1noetic /bin/bash
docker cp a.py m1noetic:/root/
docker run -it m1noetic --device=/dev/ttyS8:/dev/ttyS8
delete:
docker rm c144eb88b40a
docker rmi 0a48f32eaf05 -f
--------group--------
pcl@ubuntu:~/Desktop$ sudo groupadd docker
groupadd: group 'docker' already exists
pcl@ubuntu:~/Desktop$ sudo usermod -aG docker $USER
pcl@ubuntu:~/Desktop$ newgrp docker
-----------docker pull失败解决方案--------
vi /etc/docker/daemon.json
{
"registry-mirrors":["https://daocloud.io"]
}
上面那个镜像已挂QAQ
建议用这个
{
"registry-mirrors":[
"https://9cpn8tt6.mirror.aliyuncs.com",
"https://registry.docker-cn.com"
]
}
systemctl daemon-reload
systemctl restart docker