hi nvidia:
I can not run docker on agx orin jp6 L4T 36.3.0
pegasus@pegasus-ubuntu-3:~$ sudo docker run -it --rm --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-base:r36.2.0
Unable to find image ‘nvcr.io/nvidia/l4t-base:r36.2.0 ’ locally
r36.2.0: Pulling from nvidia/l4t-base
895d322e8e59: Pull complete
d6b7b064c0ba: Pull complete
4be337001fb6: Pull complete
3d091a54223a: Pull complete
f4ca6da77970: Pull complete
1d5805be1e54: Pull complete
4330ebf922f2: Pull complete
d44b5771c074: Pull complete
eebf68307ab5: Pull complete
580c69886425: Pull complete
Digest: sha256:4646e1dd2f26e8de5f2f8776bb02a403bef0148fd7e4d860f836bb858fc5b1cd
Status: Downloaded newer image for nvcr.io/nvidia/l4t-base:r36.2.0
docker: Error response from daemon: failed to create default sandbox: bind-mount /proc/self/task/11169/ns/net → /var/run/docker/netns/default: no such file or directory.
pegasus@pegasus-ubuntu-3:~/Desktop$ uname -a
Linux pegasus-ubuntu-3 5.15.136-tegra #8 SMP PREEMPT Wed Sep 4 11:42:28 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
I install docker like this
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo “deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] Index of linux/ubuntu/
$(. /etc/os-release && echo “$VERSION_CODENAME”) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt-get install nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
Hi
docker: Error response from daemon: failed to create default sandbox: bind-mount /proc/self/task/11169/ns/net → /var/run/docker/netns/default: no such file or directory.
The error is related to the network.
Do you have any custom network settings or could you remove the --net=host
to see if it works?
Thanks.
hi nvidia:
if I remove net seting, there is another error
pegasus@pegasus-ubuntu-3:~$ sudo docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-base:r36.2.0
[sudo] password for pegasus:
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: can’t get final child’s PID from pipe: EOF: unknown.
pegasus@pegasus-ubuntu-3:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 1970-01-01 00:00:33 UTC; 31min ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 1085 (dockerd)
Tasks: 14
Memory: 115.5M
CPU: 1.009s
CGroup: /system.slice/docker.service
└─1085 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.702768864Z” level=info msg=“Loading containers: done.”
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.749405184Z” level=warning msg=“WARNING: bridge-nf-call-iptables is disabled”
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.749466144Z” level=warning msg=“WARNING: bridge-nf-call-ip6tables is disabled”
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.749515040Z” level=info msg=“Docker daemon” commit=41ca978 containerd-snapshotter=false storage-driver=overlay2 version=27.3.1
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.750022176Z” level=info msg=“Daemon has completed initialization”
Jan 01 00:00:33 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:00:33.877055840Z” level=info msg=“API listen on /run/docker.sock”
Jan 01 00:00:33 pegasus-ubuntu-3 systemd[1]: Started Docker Application Container Engine.
Jan 01 00:29:49 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:29:49.710838272Z” level=error msg=“stream copy error: reading from a closed fifo”
Jan 01 00:29:49 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:29:49.836546144Z” level=error msg="Handler for POST /v1.47/containers/c3111480a4d84272aa787eef72a8872259e7a6d2deaef2f26ce70cc06bc44353/>
Jan 01 00:30:03 pegasus-ubuntu-3 dockerd[1085]: time=“1970-01-01T00:30:03.063483904Z” level=error msg="Handler for POST /v1.47/containers/8a679ef64e6148818453a90937bb29c77fc324f61119c78691ef1e4ab9d17915/>
pegasus@pegasus-ubuntu-3:~$
pegasus@pegasus-ubuntu-3:~$ sudo docker info
Client: Docker Engine - Community
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.17.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.29.7
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 2
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 nvidia
Default Runtime: runc
Init Binary: docker-init
containerd version: 7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
runc version: v1.1.14-0-g2c9f560
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.15.136-tegra
Operating System: Ubuntu 22.04.4 LTS
OSType: linux
Architecture: aarch64
CPUs: 8
Total Memory: 29.98GiB
Name: pegasus-ubuntu-3
ID: dc7612aa-4cc8-4231-a4cf-268115156f36
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
pegasus@pegasus-ubuntu-3:~$
pegasus@pegasus-ubuntu-3:/etc/docker$ cat /etc/docker/daemon.json
{
“runtimes”: {
“nvidia”: {
“args”: ,
“path”: “nvidia-container-runtime”
}
}
}pegasus@pegasus-ubuntu-3:/etc/docker$
docker system info:
pegasus@pegasus-ubuntu-3:~$ cat /etc/nv_tegra_release
R36 (release), REVISION: 3.0, GCID: 36923193, BOARD: generic, EABI: aarch64, DATE: Fri Jul 19 23:24:25 UTC 2024
KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
pegasus@pegasus-ubuntu-3:~$ apt list --installed |grep nvidia-container
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnvidia-container-tools/unknown,now 1.14.2-1 arm64 [installed,automatic]
libnvidia-container1/unknown,now 1.14.2-1 arm64 [installed,automatic]
nvidia-container-toolkit-base/unknown,now 1.14.2-1 arm64 [installed,automatic]
nvidia-container-toolkit/unknown,now 1.14.2-1 arm64 [installed,automatic]
nvidia-container/stable,now 6.0+b106 arm64 [installed]
pegasus@pegasus-ubuntu-3:~$ apt list --installed |grep docker
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
docker-buildx-plugin/jammy,now 0.17.1-1~ubuntu.22.04~jammy arm64 [installed]
docker-ce-cli/jammy,now 5:27.3.1-1~ubuntu.22.04~jammy arm64 [installed]
docker-ce-rootless-extras/jammy,now 5:27.3.1-1~ubuntu.22.04~jammy arm64 [installed]
docker-ce/jammy,now 5:27.3.1-1~ubuntu.22.04~jammy arm64 [installed]
docker-compose-plugin/jammy,now 2.29.7-1~ubuntu.22.04~jammy arm64 [installed]
pegasus@pegasus-ubuntu-3:~$ groups
pegasus adm sudo audio video render gdm docker weston-launch jtop
pegasus@pegasus-ubuntu-3:~$
Hi,
Based on the below log, do you an custom OS instead of L4T?
pegasus@pegasus-ubuntu-3:~/Desktop$ uname -a
Linux pegasus-ubuntu-3 5.15.136-tegra #8 SMP PREEMPT Wed Sep 4 11:42:28 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
Thanks.
nvidia:
this issue is caused by our bsp driver, we have fixed it, thanks
system
Closed
December 3, 2024, 2:18pm
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.