Docker Community Forums

Share and learn in the Docker community.

Running install on container from host


(Ruptr) #1

Hi

I’m currently running a container from a ROS image and I wish to run the setup.bash in /opt/ros/kinetic on the container from the host. I have noticed that bind mounting the directory to the host corrupts the folder so the setup.bash is no longer present. The idea right now is to bind mount a new folder on the container an create a symlink to the setup.bash but I am wondering if there is a better way to accomplish this task? I would prefer a more automatic approach.

Thanks in advance!