StoglRobotics / ros_team_workspace

RosTeamWorkspace is a framework for boosting collaboration in teams when developing software for robots using Robot Operating System (ROS1 and ROS2).
https://rtw.stoglrobotics.de
Apache License 2.0
79 stars 17 forks source link

Fixing gid setup using uid instead of gid #145

Closed gwalck closed 11 months ago

gwalck commented 11 months ago

For a setup in which uid != gid (1001:1002) after a docker container was created this error would occur

[docker]>workspaces$ rtw_switch_to_docker
Starting container instance: ros-team-ws_ubuntu_22_04_nvidia__docker-instance 
non-network local connections being added to access control list
ros-team-ws_ubuntu_22_04_nvidia__docker-instance
Connecting to container instance as user: ros-team-ws_ubuntu_22_04_nvidia__docker-instance
groups: cannot find name for group ID 1002

this comes from the uid being used instead of the gid when filling /etc/group

after the fix no more error.