At present time I have a trouble with docker commands:
docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied.
I tried to find how to fix this trouble, but all Issues for x86 didint help.
I tried to build in docker command:
sudo docker build -t jetson-build:latest -f Jetson.Dockerfile .
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Logs:
journalctl -n 500 -xu docker.service
-- Logs begin at Fri 2023-10-20 17:03:31 CEST, end at Fri 2023-10-20 18:56:37 CEST. --
okt 20 17:03:36 nano systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit docker.service has begun starting up.
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.548146923+02:00" level=info msg="Starting up"
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.579819788+02:00" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so using res
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.721113069+02:00" level=error msg="failed to mount overlay: no such device" storage-driver=overlay2
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.721297600+02:00" level=error msg="exec: \"fuse-overlayfs\": executable file not found in $PATH" storage-
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.725910777+02:00" level=info msg="Loading containers: start."
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.735372027+02:00" level=warning msg="Could not load necessary modules for Conntrack: Running modprobe nf_
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.823074111+02:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16.
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.843495100+02:00" level=info msg="Loading containers: done."
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.989614475+02:00" level=warning msg="WARNING: bridge-nf-call-iptables is disabled"
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.989675048+02:00" level=warning msg="WARNING: bridge-nf-call-ip6tables is disabled"
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.989729840+02:00" level=info msg="Docker daemon" commit=659604f graphdriver=vfs version=24.0.2
okt 20 17:03:37 nano dockerd[4502]: time="2023-10-20T17:03:37.990429475+02:00" level=info msg="Daemon has completed initialization"
okt 20 17:03:38 nano dockerd[4502]: time="2023-10-20T17:03:38.056409840+02:00" level=info msg="API listen on /run/docker.sock"
okt 20 17:03:38 nano systemd[1]: Started Docker Application Container Engine.
-- Subject: Unit docker.service has finished start-up
-- Defined-By: systemd
Also it doesnt support iptables:
sudo iptables -L -t nat
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.9.337-tegra
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Any other commands in docker doesnt work:
sudo docker run -it --rm --runtime nvidia --network host -v $(pwd):/app/src -v /usr/local/cuda-10.2/:/usr/local/cuda-10.2/:ro -v /usr/lib/aarch64-linux-gnu/:/usr/lib/aarch64-linux-gnu -v /usr/include/aarch64-linux-gnu:/usr/include/aarch64-linux-gnu jetson-build bash
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
sudo systemctl start docker.service
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Active: failed (Result: exit-code) since Tue 2023-10-24 12:16:29 CEST; 29min ago
Docs: https://docs.docker.com
Process: 12023 ExecStart=/usr/bin/dockerd --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 12023 (code=exited, status=1/FAILURE)
okt 24 12:16:29 nano systemd[1]: docker.service: Service hold-off time over, scheduling restart.
okt 24 12:16:29 nano systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
okt 24 12:16:29 nano systemd[1]: Stopped Docker Application Container Engine.
okt 24 12:16:29 nano systemd[1]: docker.service: Start request repeated too quickly.
okt 24 12:16:29 nano systemd[1]: docker.service: Failed with result 'exit-code'.
okt 24 12:16:29 nano systemd[1]: Failed to start Docker Application Container Engine.
Which docker installed:
docker version
Client:
Version: 20.10.21
API version: 1.41
Go version: go1.18.1
Git commit: 20.10.21-0ubuntu1~18.04.3
Built: Thu Apr 27 05:50:43 2023
OS/Arch: linux/arm64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
journalctl -xe command:
journalctl -xe
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager-dispatcher.service has begun starting up.
okt 24 12:57:11 nano dhclient[4639]: bound to 192.168.88.182 -- renewal in 276 seconds.
okt 24 12:57:11 nano dbus-daemon[3403]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
okt 24 12:57:11 nano systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is RESULT.
okt 24 12:57:11 nano nm-dispatcher[12234]: req:1 'dhcp4-change' [eth0]: new request (1 scripts)
okt 24 12:57:11 nano nm-dispatcher[12234]: req:1 'dhcp4-change' [eth0]: start running ordered scripts...