Docker Community Forums

Share and learn in the Docker community.

Docker mounting error on linux debain arm system

docker

#1

I have a arm board that I running the debian system witch kernel 4.4.143.
I want to run the docker on it.
but I got an error when I run the command
" docker run --rm hello-world"

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused “process_linux.go:402: container init caused “rootfs_linux.go:58: mounting \“mqueue\” to rootfs \”/var/lib/docker/vfs/dir/f4f8a237951b29fb0aa1d39b6d77c8a12b7d127bc8fccc082f452e189453cbbe\” at \"/dev/mqueue\" caused \“no such device\”"": unknown.
root@linaro-alip:~#

===
is any one know what is type error?
is filesystem issue?
or miss some kernel modules?
or other error?


#2

root@linaro-alip:~# uname -a
Linux linaro-alip 4.4.143 #5 SMP Fri Jan 11 16:34:11 CST 2019 aarch64 GNU/Linux
root@linaro-alip:~# cat /etc/issue
Debian GNU/Linux 9 \n \l

root@linaro-alip:~# cat /etc/de
debconf.conf debian_version default/ deluser.conf
root@linaro-alip:~# cat /etc/debian_version
9.6
root@linaro-alip:~#
root@linaro-alip:~# docker -v
Docker version 18.06.1-ce, build e68fc7

Here is my system info.


(Ovelindstrom) #3

Are you running as root or another user?? That is typically an error you get from docker when you do not have the right permissions on your call.

If you run ps -aux | grep docker, do you see the docker processes?


#4

running as root。and yes, there is docer running in daemon




incle.huang

邮箱:incle.huang@gmail.com

签名由 网易邮箱大师 定制


(Ovelindstrom) #5

Ok, I think I got it pinned down running a box with the same kernel. Seems like the queue isn’t created by default.

You could try to add the following lines to the end of /etc/rc.d/rc.local

mkdir /dev/mqueue
mount -t mqueue none /dev/mqueue

#6

OK, thank you, i will try and let you kown the result.




incle.huang

邮箱:incle.huang@gmail.com

签名由 网易邮箱大师 定制


#7

hello, I have add the lines as you told to /etc/rc.local & /etc/init.d/rc.local too. ( /etc/rc.d/rc.local not found in my system)
and reboot, but it’s not work.
and I try it by manual , it’s failed too.

Blockquote
root@linaro-alip:~# ls /dev/m
mali0 memory_bandwidth mmcblk1boot1 mmcblk1p3 mmcblk1p6 mmcblk1p9
mapper/ mmcblk1 mmcblk1p1 mmcblk1p4 mmcblk1p7 mmcblk1rpmb
mem mmcblk1boot0 mmcblk1p2 mmcblk1p5 mmcblk1p8 mqueue/
root@linaro-alip:~# ls -lat /dev/mqueue/
total 0
drwxr-xr-x 15 root root 3620 Jan 10 10:32 …
drwxr-xr-x 2 root root 40 Jan 10 10:32 .
root@linaro-alip:~#
root@linaro-alip:~# mount -t mqueue none /dev/mqueue
mount: unknown filesystem type ‘mqueue’
root@linaro-alip:~#


root@linaro-alip:~# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/root ext4 24G 2.0G 21G 9% /
devtmpfs devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs tmpfs 1.9G 17M 1.9G 1% /run
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs tmpfs 385M 8.0K 385M 1% /run/user/1000
tmpfs tmpfs 385M 0 385M 0% /run/user/0
/dev/sda1 btrfs 15G 17M 13G 1% /media/linaro/48ceedb8-fa92-49b4-b6ec-3e2eccd617df
/dev/mmcblk1p7 ext4 8.7M 5.9M 2.2M 74% /media/linaro/76b975f0-f021-4aa2-abd1-c313d716b870
root@linaro-alip:~#


root@linaro-alip:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
29dd475ce22d portainer/portainer “/portainer” Less than a second ago Created 0.0.0.0:9000->9000/tcp portainer
8eaf4fba8a17 hello-world “/hello” 2 hours ago Created trusting_jennings
root@linaro-alip:~#


root@linaro-alip:~# ps -aux | grep docker
root 522 1.5 1.2 988168 49308 ? Ssl 10:32 0:14 /usr/bin/dockerd -H fd://
root 635 1.4 0.6 971600 24156 ? Ssl 10:32 0:13 docker-containerd --config /var/run/docker/containerd/containerd.toml
root 1362 0.0 0.0 3828 544 pts/0 S+ 10:48 0:00 grep docker
root@linaro-alip:~#



#8

First, I thought it’s lost some kernel modules.
Because I got an error when I install and startup the docker,
the error is :

docker: Error response from daemon: failed to create endpoint portainer on network bridge: failed to add the host (veth30b86ef) <=> sandbox (veth3ec0179) pair interfaces: operation not supported.

and I just add a kernel module (see the picture)

for it, and update the kernel for this system, then this error is gone.(but got above error (mounting)) .

So I thought if the mounting error is lost some kernel modules too.
Do you think so?
I was try to add some fs like “btrfs”, but it’s not work.


#9

Finally, it’s works!
it’s true that the kernel lost some modules for docker.

please see this page: ( about Kernel compatibility)

I use the script check my kernel config file and then it’s show me which modules are missing.

Thank you very one!
Thanks!