deepedge1@ubuntu:/mnt/nvme/hema/TensorRT$ ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-jetpack-cuda11.4 Building container: > docker build -f docker/ubuntu-cross-aarch64.Dockerfile --build-arg CUDA_VERSION=11.4.2 --build-arg uid=1000 --build-arg gid=1000 --tag=tensorrt-jetpack-cuda11.4 . Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/build?buildargs=%7B%22CUDA_VERSION%22%3A%2211.4.2%22%2C%22gid%22%3A%221000%22%2C%22uid%22%3A%221000%22%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=docker%2Fubuntu-cross-aarch64.Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=tensorrt-jetpack-cuda11.4&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied deepedge1@ubuntu:/mnt/nvme/hema/TensorRT$ sudo ./docker/build.sh --file docker/ubuntu-cross-aarch64.Dockerfile --tag tensorrt-jetpack-cuda11.4 Building container: > docker build -f docker/ubuntu-cross-aarch64.Dockerfile --build-arg CUDA_VERSION=11.4.2 --build-arg uid=0 --build-arg gid=0 --tag=tensorrt-jetpack-cuda11.4 . Sending build context to Docker daemon 95.59MB Step 1/33 : ARG CUDA_VERSION=10.2 Step 2/33 : ARG OS_VERSION=18.04 Step 3/33 : FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${OS_VERSION} 11.4.2-devel-ubuntu18.04: Pulling from nvidia/cuda 87acad9590b0: Pull complete f873e32e53b7: Pull complete 96b7745f31bd: Pull complete b3db42d4e813: Pull complete 5b8c619ef5ad: Pull complete a26321771cab: Pull complete 648bff5e3265: Pull complete df171b3de2f0: Pull complete be7dc4806239: Pull complete 3a7e32520d8e: Pull complete de18a3ade1ed: Pull complete Digest: sha256:3ce31e5c2f40ecc2bc8464daa807b8c4d7923fca47cd890c556e572fb84e5102 Status: Downloaded newer image for nvidia/cuda:11.4.2-devel-ubuntu18.04 ---> 8fa4f576f963 Step 4/33 : LABEL maintainer="NVIDIA CORPORATION" ---> Running in fd9f1044c588 Removing intermediate container fd9f1044c588 ---> 2fb1ad04ce30 Step 5/33 : ENV TRT_VERSION 8.2.0.6 ---> Running in feccd6f0368b Removing intermediate container feccd6f0368b ---> f4d3f8379b5b Step 6/33 : ARG uid=1000 ---> Running in c3b473feb0de Removing intermediate container c3b473feb0de ---> c70a00c82c00 Step 7/33 : ARG gid=1000 ---> Running in 6b535c800f01 Removing intermediate container 6b535c800f01 ---> 55a4b3618c07 Step 8/33 : RUN groupadd -r -f -g ${gid} trtuser && useradd -o -r -u ${uid} -g ${gid} -ms /bin/bash trtuser ---> Running in 9e6e3c3ab895 Removing intermediate container 9e6e3c3ab895 ---> 81bef492ead2 Step 9/33 : RUN usermod -aG sudo trtuser ---> Running in e5617a4360d3 Removing intermediate container e5617a4360d3 ---> e2a80169277f Step 10/33 : RUN echo 'trtuser:nvidia' | chpasswd ---> Running in 892c9cef8cf2 Removing intermediate container 892c9cef8cf2 ---> 711fdc2558fd Step 11/33 : RUN mkdir -p /workspace && chown trtuser /workspace ---> Running in 687e3bdc994a Removing intermediate container 687e3bdc994a ---> 07e773ddfb8f Step 12/33 : RUN apt-get update && apt-get install -y software-properties-common ---> Running in c25bdc5661a0 Get:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease [242 kB] Err:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease At least one invalid signature was encountered. Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB] Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa InRelease [1579 B] Err:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease At least one invalid signature was encountered. Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [83.3 kB] Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa InRelease At least one invalid signature was encountered. Err:4 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease At least one invalid signature was encountered. Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB] Err:5 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease At least one invalid signature was encountered. Reading package lists... W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic InRelease' is not signed. W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease' is not signed. W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa InRelease: At least one invalid signature was encountered. E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa InRelease' is not signed. W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease' is not signed. W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease' is not signed. The command '/bin/sh -c apt-get update && apt-get install -y software-properties-common' returned a non-zero code: 100