NVIDIA-ISAAC-ROS / isaac_ros_common

Common utilities, packages, scripts, Dockerfiles, and testing infrastructure for Isaac ROS packages.
https://developer.nvidia.com/isaac-ros-gems
Other
195 stars 138 forks source link

Docker pulled by others whose UID is different #150

Closed xiayip closed 2 weeks ago

xiayip commented 1 month ago

Hi, I want to use this isaac_ros_dev docker as dev container, and push the built image to docker registry. The problem is:

  1. The building PC(UID is 1000) run run_dev.sh and build the image, so user 'admin' bind to UID 1000(It fixed during docker build, passed by --build-arg" "USER_UID=id -u).
  2. An other PC( UID is 1001) pull docker from docker registry, and just docker run the image. So it caused Permission Denied in mounted directory. Because the 'admin' UID is 1000 and the mounted directory belongs to 1001.

    How can I make the built image as a genera image can be pulled by others?

xiayip commented 2 weeks ago

finally I add host's UID&GID as docker run parameters, and reset admin's UID&GID in entrypoint.sh