ZhenshengLee / ros2_shm_msgs

ROS2 shm_msg based zero-copy for image and pointcloud.
114 stars 22 forks source link

[BUG] adding another user failed when starting docker container. #21

Closed ZhenshengLee closed 1 year ago

ZhenshengLee commented 1 year ago
using this sw means agreeing to the license agreement above
[INFO] Start docker container based on local image : ga_team/ga_ros:22.04
[INFO] Starting docker container "ga_22.04_neousys" ...
++ local_volumes
++ set +x
+ docker run --gpus all -it -d --privileged --name ga_22.04_neousys -e DOCKER_USER=neousys -e USER=neousys -e DOCKER_USER_ID=1000 -e DOCKER_GRP=neousys -e DOCKER_GRP_ID=1000 -e DOCKER_IMG=ga_team/ga_ros:22.04 -e USE_GPU=1 -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility -v /home/neousys/zs_ws/ga_ros:/ga_ros -v /home/neousys/.cache:/home/neousys/.cache -v /dev:/dev -v /media:/media -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /etc/localtime:/etc/localtime:ro -v /usr/src:/usr/src -v /lib/mgaules:/lib/mgaules --net host -w /ga_ros --add-host in_dev_docker:127.0.0.1 --add-host neousys-Nuvo-8208GC-Series:127.0.0.1 --hostname in_dev_docker --shm-size 2G --pid=host -v /dev/null:/dev/raw1394 ga_team/ga_ros:22.04 /bin/bash
07bc0a9a3856c41fcc2906562d3c0b935f038c97adfd04859af78560d2addb36
+ '[' 0 -ne 0 ']'
+ set +x
addgroup: The GID `1000' is already in use.
usermod: user 'neousys' does not exist
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
root is not in the sudoers file.  This incident will be reported.
chown: invalid user: 'neousys:neousys'
chown: invalid user: 'neousys:neousys'
[ OK ] Finished setting up ga_team/ga ros environment. Now you can enter with: 
bash docker/scripts/ga_into.sh 
[ OK ] Enjoy!

a workaround is to change ga_into.sh to be like the follow

docker exec \
    -u zs \
    -e HISTFILE=/ga_ros/.dev_bash_hist \
    -it ga_${GA_DIST}_$USER \
    /bin/bash