ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

installing ros inside docker

asked 2021-04-08 10:24:08 -0500

dinesh gravatar image

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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-04-08 14:35:15 -0500

ruffsl gravatar image

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:

edit flag offensive delete link more
0

answered 2021-04-08 10:48:21 -0500

dinesh gravatar image

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
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-04-08 10:24:08 -0500

Seen: 752 times

Last updated: Apr 08 '21