Hi,
I am trying to install docker in TX1, but it always failed. I have flash TX1 for several times. One thing happened to me is that if I flash TX1 with only system os, I could not get install docker.io at all. The error says it can not locate package docker in source (I have also tried manually adding docker source but still cant locate). If I flash TX1 with full software, it can install something when typing install docker.io. However, it still not fully successful and the install results is this
nvidia@tegra-ubuntu:~$ sudo apt-get install docker.io │························
Reading package lists... Done │························
Building dependency tree │························
Reading state information... Done │························
The following packages were automatically installed and are no longer required: │························
apt-clone archdetect-deb dmeventd dmraid dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 kpartx kpartx-boot libappstream3 libdebian-installer4 libdevmapper-event1.02.1 libdmraid1.0.0.rc16 │························
liblockfile-bin liblockfile1 liblvm2app2.2 liblvm2cmd2.02 libparted-fs-resize0 libreadline5 lockfile-progs lvm2 os-prober pmount python3-icu python3-pam rdate ubiquity-casper ubiquity-ubuntu-artwork │························
Use 'sudo apt autoremove' to remove them. │························
The following additional packages will be installed: │························
cgroupfs-mount containerd runc ubuntu-fan │························
Suggested packages: │························
aufs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils │························
The following NEW packages will be installed: │························
cgroupfs-mount containerd docker.io runc ubuntu-fan │························
0 upgraded, 5 newly installed, 0 to remove and 524 not upgraded. │························
Need to get 13.9 MB of archives. │························
After this operation, 80.6 MB of additional disk space will be used. │························
Do you want to continue? [Y/n] Y │························
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/universe arm64 cgroupfs-mount all 1.2 [4,970 B] │························
Get:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe arm64 runc arm64 1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1 [1,269 kB] │························
Get:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe arm64 containerd arm64 0.2.5-0ubuntu1~16.04.1 [3,397 kB] │························
Get:4 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe arm64 docker.io arm64 1.12.6-0ubuntu1~16.04.1 [9,223 kB] │························
Get:5 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main arm64 ubuntu-fan all 0.9.2 [30.7 kB] │························
Fetched 13.9 MB in 7s (1,821 kB/s) │························
Selecting previously unselected package cgroupfs-mount. │························
(Reading database ... 163405 files and directories currently installed.) │························
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ... │························
Unpacking cgroupfs-mount (1.2) ... │························
Selecting previously unselected package runc. │························
Preparing to unpack .../runc_1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1_arm64.deb ... │························
Unpacking runc (1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1) ... │························
Selecting previously unselected package containerd. │························
Preparing to unpack .../containerd_0.2.5-0ubuntu1~16.04.1_arm64.deb ... │························
Unpacking containerd (0.2.5-0ubuntu1~16.04.1) ... │························
Selecting previously unselected package docker.io. │························
Preparing to unpack .../docker.io_1.12.6-0ubuntu1~16.04.1_arm64.deb ... │························
Unpacking docker.io (1.12.6-0ubuntu1~16.04.1) ... │························
Selecting previously unselected package ubuntu-fan. │························
Preparing to unpack .../ubuntu-fan_0.9.2_all.deb ... │························
Unpacking ubuntu-fan (0.9.2) ... │························
Processing triggers for systemd (229-4ubuntu6) ... │························
Processing triggers for man-db (2.7.5-1) ... │························
Setting up cgroupfs-mount (1.2) ... │························
Setting up runc (1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1) ... │························
Setting up containerd (0.2.5-0ubuntu1~16.04.1) ... │························
Setting up docker.io (1.12.6-0ubuntu1~16.04.1) ... │························
Adding group `docker' (GID 127) ... │························
Done. │························
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. │························
invoke-rc.d: initscript docker, action "start" failed. │························
dpkg: error processing package docker.io (--configure): │························
subprocess installed post-installation script returned error exit status 1 │························
Setting up ubuntu-fan (0.9.2) ... │························
Processing triggers for systemd (229-4ubuntu6) ... │························
Errors were encountered while processing: │························
docker.io │························
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I want to start docker service, the error and docker status result is
nvidia@tegra-ubuntu:~$ 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. │························
nvidia@tegra-ubuntu:~$ ^C │························
nvidia@tegra-ubuntu:~$ systemctl status docker.service │························
● docker.service - Docker Application Container Engine │························
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) │························
Active: failed (Result: exit-code) since Tue 2017-10-24 01:08:54 UTC; 14s ago │························
Docs: https://docs.docker.com │························
Process: 3506 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE) │························
Main PID: 3506 (code=exited, status=1/FAILURE) │························
│························
Oct 24 01:08:53 tegra-ubuntu systemd[1]: Starting Docker Application Container Engine... │························
Oct 24 01:08:53 tegra-ubuntu dockerd[3506]: time="2017-10-24T01:08:53.104008000Z" level=info msg="libcontainerd: new containerd process, pid: 3513" │························
Oct 24 01:08:54 tegra-ubuntu dockerd[3506]: time="2017-10-24T01:08:54.200967000Z" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: devicemapper: Error running deviceCreate (Crea│························
Oct 24 01:08:54 tegra-ubuntu dockerd[3506]: time="2017-10-24T01:08:54.201104000Z" level=fatal msg="Error starting daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePoo│························
Oct 24 01:08:54 tegra-ubuntu systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE │························
Oct 24 01:08:54 tegra-ubuntu systemd[1]: Failed to start Docker Application Container Engine. │························
Oct 24 01:08:54 tegra-ubuntu systemd[1]: docker.service: Unit entered failed state. │························
Oct 24 01:08:54 tegra-ubuntu systemd[1]: docker.service: Failed with result 'exit-code'. │························
nvidia@tegra-ubuntu:~$
Could you give me some suggestion about what should I do? I already paid two days on this problem. I have run the config_check.sh of docker, the result is
info: reading kernel config from /proc/config.gz ...
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: missing
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: missing
- CONFIG_MEMCG: missing
- CONFIG_KEYS: enabled
- CONFIG_VETH: missing
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_FILTER: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: missing
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: missing
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NETFILTER_XT_MATCH_IPVS: missing
- CONFIG_IP_NF_NAT: missing
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: missing
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: missing
Optional Features:
- CONFIG_USER_NS: missing
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: missing
- CONFIG_MEMCG_SWAP: missing
- CONFIG_MEMCG_SWAP_ENABLED: missing
- CONFIG_MEMCG_KMEM: missing
- CONFIG_BLK_CGROUP: missing
- CONFIG_BLK_DEV_THROTTLING: missing
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: missing
- CONFIG_CGROUP_PERF: missing
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: missing
- CONFIG_CGROUP_NET_PRIO: missing
- CONFIG_CFS_BANDWIDTH: missing
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: missing
- CONFIG_IP_VS_NFCT: missing
- CONFIG_IP_VS_RR: missing
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
- "overlay":
- CONFIG_VXLAN: missing
Optional (for encrypted networks):
- CONFIG_CRYPTO: enabled
- CONFIG_CRYPTO_AEAD: enabled
- CONFIG_CRYPTO_GCM: missing
- CONFIG_CRYPTO_SEQIV: missing
- CONFIG_CRYPTO_GHASH: missing
- CONFIG_XFRM: enabled
- CONFIG_XFRM_USER: enabled
- CONFIG_XFRM_ALGO: enabled
- CONFIG_INET_ESP: enabled
- CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
- "ipvlan":
- CONFIG_IPVLAN: missing
- "macvlan":
- CONFIG_MACVLAN: enabled
- CONFIG_DUMMY: enabled
- "ftp,tftp client in container":
- CONFIG_NF_NAT_FTP: enabled
- CONFIG_NF_CONNTRACK_FTP: enabled
- CONFIG_NF_NAT_TFTP: enabled
- CONFIG_NF_CONNTRACK_TFTP: enabled
- Storage Drivers:
- "aufs":
- CONFIG_AUFS_FS: missing
- "btrfs":
- CONFIG_BTRFS_FS: missing
- CONFIG_BTRFS_FS_POSIX_ACL: missing
- "devicemapper":
- CONFIG_BLK_DEV_DM: enabled
- CONFIG_DM_THIN_PROVISIONING: missing
- "overlay":
- CONFIG_OVERLAY_FS: missing
- "zfs":
- /dev/zfs: missing
- zfs command: missing
- zpool command: missing
Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000
Hope for your help and thanks a lot!
Docker
TX1: please install it with:
sudo apt-get install docker.io
TX2: some kernel option needed to be enabled first, please check this topic:
Docker on the TX2 - Jetson TX2 - NVIDIA Developer Forums
Nvidia-Docker
Currently, NvDocker doesn’t support TX1/TX2. But we may enable this on NvDocker2.0
But there is some alternative from the community. You can check if it helps:
https://github.com/NVIDIA/nvidia-docker/issues/214