Greetings !
I have compiled yocto for i.MX6UL (Zeus) . Can anyone help me out with the exact procedure to add Docker along with its required dependency packages to Yocto build.
I tried cloning meta-virtualization layer and added the below packages through local.conf file . But after flashing docker.service is failing to run (error log is mentioned below).
----------------------------------------------------------------------------------
DISTRO_FEATURES_append = " virtualization"
IMAGE_INSTALL_append += "aufs-util docker-ce cgroup-lite python3-docker python3-docker-pycreds python3-dockerpty runc-docker python3-docker-compose fuse-overlayfs oci-runtime-tools containerd-opencontainers git"
----------------------------------------------------------------------------------
Log of docker.service
--------------------------------
root@imx6ul-pds:~# journalctl -u docker -f -n 100
-- Logs begin at Wed 2022-06-08 12:42:25 UTC. --
Aug 03 09:16:08 imx6ul-pds systemd[1]: docker.service: Start request repeated too quickly.
Aug 03 09:16:08 imx6ul-pds systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 03 09:16:08 imx6ul-pds systemd[1]: Failed to start Docker Application Container Engine.
Aug 03 09:19:48 imx6ul-pds systemd[1]: Starting Docker Application Container Engine...
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.786701342Z" level=info msg="Starting up"
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.843628097Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.845572964Z" level=info msg="scheme \"unix\" not registered, fallback to defc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.847697913Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unic
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.849745196Z" level=info msg="ClientConn switching balancer to \"pick_first\"c
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.853175348Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.871280853Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.910190269Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.914921207Z" level=info msg="scheme \"unix\" not registered, fallback to defc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.916950282Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unic
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.919230397Z" level=info msg="ClientConn switching balancer to \"pick_first\"c
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.925912993Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.937499818Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0xc
Aug 03 09:19:49 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:49.964574077Z" level=error msg="Failed to built-in GetDriver graph btrfs /var/"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.071230952Z" level=error msg="'overlay' not found as a supported filesystem 2
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.192916138Z" level=error msg="AUFS was not found in /proc/filesystems" storas
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.252713256Z" level=error msg="'overlay' not found as a supported filesystem y
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.258044858Z" level=error msg="Failed to built-in GetDriver graph devicemappe"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.371781036Z" level=warning msg="Your kernel does not support cgroup memory l"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.383845818Z" level=warning msg="Unable to find cpu cgroup in mounts"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.387180637Z" level=warning msg="Unable to find blkio cgroup in mounts"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.390755371Z" level=warning msg="Unable to find cpuset cgroup in mounts"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.393484318Z" level=warning msg="mountpoint for pids not found"
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: time="2022-08-03T09:19:50.434621308Z" level=info msg="stopping event stream following graceful shutdoy
Aug 03 09:19:50 imx6ul-pds dockerd[1070]: failed to start daemon: Devices cgroup isn't mounted
Aug 03 09:19:50 imx6ul-pds systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 03 09:19:50 imx6ul-pds systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 03 09:19:50 imx6ul-pds systemd[1]: Failed to start Docker Application Container Engine.
------------------------------------------------------------------------------------------------------------------------------
Thanks