I am working on Jetson Orin AGX, and I tried to modify the /etc/docker/daemon.json
by adding "default-runtime": "nvidia"
and after modifying this when I did sudo systemctl restart docker
got the following
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
then when I check the service status I got the following
nvidia@ubuntu:/etc/docker$ 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
└─jetson-docker.conf
Active: failed (Result: exit-code) since Thu 2024-02-15 12:05:57 IST; 55s ago
TriggeredBy: × docker.socket
Docs: https://docs.docker.com
Process: 11453 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 11453 (code=exited, status=1/FAILURE)
CPU: 312ms
Feb 15 12:05:57 ubuntu systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Feb 15 12:05:57 ubuntu systemd[1]: Stopped Docker Application Container Engine.
Feb 15 12:05:57 ubuntu systemd[1]: docker.service: Start request repeated too quickly.
Feb 15 12:05:57 ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.
Feb 15 12:05:57 ubuntu systemd[1]: Failed to start Docker Application Container Engine.
and for sudo dockerd --debug
I get the error message as follows
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to register "bridge" driver: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1
(exit status 4))
I reloaded the daemon.josn
using systemctl daemon-reload
but the docker service did not start,can anyone help me resolve the issue?