Install ros? in docker

there are a lot of things other than the ros that ros, needs to configure in ubuntu16 before, and it may increase in the future. Recently, docker, wants to use docker to configure the environment. After reading the tutorials of docker, I am still a little confused about how to do it.
now I can think of two solutions:
1.ros has a docker image, which can be directly used by pull. Can the previous configuration on ubuntu be moved directly?
2.pull ubuntu16 images, and then configure the environment inside, install ros.
personal feeling that the second is more stable, and wonder what the first is like. If there is no experiment, will there be any problems?

Mar.15,2021

I don't know how many things you want to configure in the second scheme. I said I can see it.
from docker-ros , ros-core 's Dockerfile is based on the ubuntu:trusty image, and there are a lot of things to configure. And several other related ros-base, robot, perception and so on are also based on the ros-core image.

visually, the first solution is more appropriate. After all, it is based on the Ubuntu image, and you can use the relevant configuration of your Dockerfile on the ros image.

Menu