Failed to start docker daemon on TX2

I just installed a new environment on TX2 (see this post, though it has problem to start GUI, yet I can ssh log into it to do something). Nvidia Jetson TX2 is hanging on “Started Update UTMP about System Runlevel Changes.” after flashing new packages with SDKManager 1.1

When I tried to start the docker daemon, it failed.

tx2@tx2-desktop:~$ sudo systemctl start docker

Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

tx2@tx2-desktop:~$ sudo systemctl status docker.service

● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2020-06-09 22:36:18 EDT; 32s ago
     Docs: https://docs.docker.com
  Process: 19062 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 19062 (code=exited, status=1/FAILURE)

Jun 09 22:36:18 tx2-desktop systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Jun 09 22:36:18 tx2-desktop systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jun 09 22:36:18 tx2-desktop systemd[1]: Stopped Docker Application Container Engine.
Jun 09 22:36:18 tx2-desktop systemd[1]: docker.service: Start request repeated too quickly.
Jun 09 22:36:18 tx2-desktop systemd[1]: docker.service: Failed with result 'exit-code'.
Jun 09 22:36:18 tx2-desktop systemd[1]: Failed to start Docker Application Container Engine.

$ cat /var/log/syslog


Jun 9 22:36:10 tx2-desktop kernel: [75741.053337] device-mapper: table: 253:0: thin-pool: unknown target type
Jun 9 22:36:10 tx2-desktop kernel: [75741.063525] device-mapper: ioctl: error adding target to table
Jun 9 22:36:10 tx2-desktop dockerd[18852]: time=“2020-06-09T22:36:10.960167030-04:00” level=error msg="[graphdriver] prior storage driver devicemapper failed: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed"
Jun 9 22:36:10 tx2-desktop dockerd[18852]: failed to start daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
Jun 9 22:36:10 tx2-desktop systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jun 9 22:36:10 tx2-desktop systemd[1]: docker.service: Failed with result ‘exit-code’.
Jun 9 22:36:10 tx2-desktop systemd[1]: Failed to start Docker Application Container Engine.
Jun 9 22:36:13 tx2-desktop systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Jun 9 22:36:13 tx2-desktop systemd[1]: docker.service: Scheduled restart job, restart counter is at 1.
Jun 9 22:36:13 tx2-desktop systemd[1]: Stopped Docker Application Container Engine.

This is a new installation from JetPack 4.4/SDKManager 1.1, I expected it to be working well if there is no issue with the installation, which I didn’t see any.

$ dpkg -l | grep docker

ii docker 1.5-1build1 arm64 System tray for KDE3/GNOME2 docklet applications
ii docker.io 19.03.6-0ubuntu1~18.04.1 arm64 Linux container runtime
ii nvidia-docker2 2.2.0-1 all nvidia-docker CLI wrapper

Any hints, suggestions are appreciated.

Hi,

We try this command on a TX2 with JetPack4.4:

$ sudo systemctl start docker

The command can be executed without error.
Not sure if any difference between our setting makes the error.
Would you mind to reflash the device and try it again?

Thanks.

Thanks @AastaLLL for confirmation it works on your side.

I didn’t see any error with flashing the device and saved all logs. Do you mind of telling me which log may indicate some clue about this issue? I did flashing 3 times, without knowing more information I suspect flashing one more time would not change much.

Hi,

Sorry for the late.

systemd[1]: docker.service: Start request repeated too quickly.

Based on the above log, I found you problem may be related to this issue:

Would you mind to check if the reloading suggestion also works for you?
Thanks.