Ubuntu 18.04 Docker Issue on 7.0.3.0

Please provide the following info (tick the boxes after creating this topic):

Software Version
DRIVE OS 7.0.3
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Thor Developer Kit (940-63960-0010-000)
DRIVE AGX Thor Developer Kit (940-63960-0012-000)
other

Host Machine Version
native Ubuntu Linux 24.04 Host installed with DRIVE OS Docker Containers
other

Issue Description
I tried to create Ubuntu 18.04 Docker Container on 7.0.3.0. When I using “docker run —gpus all“, it will get relocation error message as below. But it will be fine when using “docker run –runtime=nvidia“.

It looks like when using “—gpus all“, it will try to hook /usr/lib/ on host side into docker container side & causing this issue. Is it fine to use “runtime=nvidia” to access GPU (I do see nvidia0 appears in /dev/ ) in docker container or I still have to find a way to fix “–gpus all“ ‘s problem ?

Also, the following is my docker’s deamon.json setting:

{
  "features": {
    "buildkit": true
  },
  "default-runtime": "nvidia",
  "runtimes": {
    "nvidia": {
      "path": "/usr/bin/nvidia-container-runtime",
      "runtimeArgs": []
    }
  }
}

Error String
/bin/bash: relocation error: /usr/lib/aarch64-linux-gnu/libc.so.6: symbol _dl_audit_symbind_alt version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference

Logs

Script in ./run_docker.sh is as following:

docker run --gpus all -it --privileged --network host -v /home/nvidia/ros_docker:/mnt --name “$CONTAINER_NAME” $IMG_NAME /bin/bash

nvidia@tegra-ubuntu:~/ros_docker$ ./run_docker.sh
Docker image not exist. Now Start to build image.
[+] Building 0.1s (21/21) FINISHED                                                                                                                         docker:default
 => [internal] load build definition from Dockerfile.ros_melodic                                                                                                     0.0s
 => => transferring dockerfile: 2.54kB                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                      0.0s
 => [stage-0  1/16] FROM docker.io/library/ubuntu:18.04                                                                                                              0.0s
 => [internal] load build context                                                                                                                                    0.0s
 => => transferring context: 40B                                                                                                                                     0.0s
 => CACHED [stage-0  2/16] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y         software-properties-common && add-apt-reposito  0.0s
 => CACHED [stage-0  3/16] RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y     apt-utils     bash-completion     build-essential   0.0s
 => CACHED [stage-0  4/16] RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1                                                               0.0s
 => CACHED [stage-0  5/16] RUN apt-get install -y python3-pip && pip3 install defusedxml && pip3 install rospkg && pip3 install netifaces                            0.0s
 => CACHED [stage-0  6/16] RUN --mount=type=cache,target=/var/cache/apt apt-add-repository ppa:mosquitto-dev/mosquitto-ppa && apt-get update && apt-get install -y   0.0s
 => CACHED [stage-0  7/16] RUN apt install -y gdal-bin                                                                                                               0.0s
 => CACHED [stage-0  8/16] RUN sh -c 'echo deb "http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list' && apt-key adv --keyserv  0.0s
 => CACHED [stage-0  9/16] RUN apt update && apt install -y ros-melodic-ros-base     && echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc     && source ~/.bas  0.0s
 => CACHED [stage-0 10/16] RUN apt-get install -y ros-melodic-teleop-twist-keyboard                                                                                  0.0s
 => CACHED [stage-0 11/16] RUN cd && wget http://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz     && mkdir eigen && tar --strip-components=1 -xzvf   0.0s
 => CACHED [stage-0 12/16] RUN apt-get install -y python3-colcon-common-extensions                                                                                   0.0s
 => CACHED [stage-0 13/16] RUN --mount=type=cache,target=/var/cache/apt     apt-get install -y screen                                                                0.0s
 => CACHED [stage-0 14/16] COPY ./install_agv_dep.sh /usr/local/bin/                                                                                                 0.0s
 => CACHED [stage-0 15/16] RUN chmod +x /usr/local/bin/install_agv_dep.sh && /usr/local/bin/install_agv_dep.sh                                                       0.0s
 => CACHED [stage-0 16/16] RUN echo "source /opt/ros/melodic/setup.bash" >> /root/.bashrc                                                                            0.0s
 => exporting to image                                                                                                                                               0.0s
 => => exporting layers                                                                                                                                              0.0s
 => => writing image sha256:0702d67c1df4c50f9d21393c18414d4ceb8e21e04fb85d4298acb88269742bf1                                                                         0.0s
 => => naming to docker.io/ubuntu18_04/ros-melodic:ros-melodic                                                                                                       0.0s
Run Container
/bin/bash: relocation error: /usr/lib/aarch64-linux-gnu/libc.so.6: symbol _dl_audit_symbind_alt version GLIBC_PRIVATE not defined in file ld-linux-aarch64.so.1 with link time reference

Dear @bobe0830 ,
This forum is exclusively for developers who are part of the NVIDIA DRIVE® AGX SDK Developer Program | NVIDIA Developer . To post in the forum, please use an account associated with your corporate or university email address.
This helps us ensure that the forum remains a platform for verified members of the developer program. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.