installing ros inside docker
I have installed a docker for a package called fairseq as:
sudo docker run --rm -itd --name flashlight flml/flashlight:cpu-latest
I'm trying to install ros inside this docker container so that i can create a ros wrapper for the flashlight python module for creating a ros node. When i follow the normal ros noetic installation inside this container i'm getting errors like:
root@4be3b2fe19d7:~# sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sh: 1: lsb_release: not found
So what is the method to install ros inside a docker?
Asked by dinesh on 2021-04-08 10:24:08 UTC
Answers
Ok after i installed the lsb-releae inside the container. I'm able to install ros in it.
apt-get update && apt-get install -y lsb-release && apt-get clean all
Asked by dinesh on 2021-04-08 10:48:21 UTC
Comments
You can checkout the Dockerfiles used for the ROS images in Official Library on DockerHub as a reference for how to install ROS, or just pull and build from the images directly:
Asked by ruffsl on 2021-04-08 14:35:15 UTC
Comments