Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 923 Bytes

README.md

File metadata and controls

50 lines (39 loc) · 923 Bytes

Docker for ros1

Guide for setting up a docker container for ros1.

Installation

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
sudo groupadd docker
sudo usermod -aG docker $USER

Check if docker is enabled or not

systemctl is-enabled docker 

If not run these commands

sudo systemctl enable docker.service
sudo systemctl enable containerd.service

Docker container

To build the Dockerfile

(assuming that you cloned this repo in the Desktop directory )

cd ~/Desktop/sample

login with your username and password/PAT

docker login

build the image

docker build -t my_ros_image .

To run the dockerfile

cd ~Desktop/my_code
docker run -it --user ros1 --network=host --ipc=host  -v  $PWD/source:/my_source_code -v /tmp/.X11-unix:/tmp/.X11-unix:rw --env=DISPLAY my_ros_image