AnsweredAssumed Answered

Running Docker on an i.MX8

Question asked by Russell Coy on Feb 1, 2019
Latest reply on Feb 21, 2019 by Russell Coy


I am trying to create an image for the imx8mqevk using Yocto with docker added.

I am using the NXP i.MX Release Distro 4.9.51-mx8-ga (morty), kernel version 4.9.51-imx_4.9.51_imx8m_ga+g6df7474.

So I have git cloned the meta-virtualization layer (morty branch) to my Yocto top level, added the layer reference into my build/bblayers.conf file and added docker to my custom image bb file. I've also added DISTRO_FEATURES_append = " virtualization" to my build/local.conf file as suggested by the OE/meta-virtualization 'about' section.

Bitbake of my image completes OK and the docker daemon starts on the target imx8mqevek when booted with the new image. However, if I try to run the docker hello-world test, it appears to pull the image, but the daemon fails to run it, e.g. I get the following:


root:/# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
3b4173355427: Pulling fs layer
3b4173355427: Verifying Checksum
3b4173355427: Download complete
3b4173355427: Pull complete
Digest: sha256:2557e3c07ed1e38f26e389462d03ed943586f744621577a99efb77324b0fe535
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: operation not supported.
See 'docker run --help'


Any idea what I'm doing wrong here, any additional packages required, or has anybody else had similar issues when trying to add docker using the NXP Yocto method?


Kind regards,