Docker Community Forums

Share and learn in the Docker community.

Help with "Error response from daemon: Cannot start container ... no such file or directory" on Oracle Linux


(Pauloleal) #1

Hi,

TLDR: I am trying to run the hello-world container on a Oracle Linux and I am getting an error message:
Error response from daemon: Cannot start container 724ed94d9249b636d6820fb8c2e4ba64232f426812e5b03545762 532751f434e: [8] System error: mkdir /var/lib/docker/devicemapper/mnt/724ed94d9249b636d6820fb8c2e4ba6423 2f426812e5b03545762532751f434e/rootfs/sys/fs/cgroup: no such file or directory

I am trying to install and run Docker on a Oracle Linux machine. I have followed the instructions on the Oracle webpage (https://docs.oracle.com/cd/E37670_01/E37355/html/section_kfy_f2z_fp.html), but had some problems.

When installing the docker-engine I had some dependencies problem with the UEK packages, but I could solve those with the instructions on this page (https://docs.oracle.com/cd/E37670_01/E37355/html/ol_obtain_uek.html).

On the third step of the Oracle page (Configure the docker engine to use the btrfs), I could not create the btrfs file system:
[root ~]# mkfs.btrfs /dev/sdb
/dev/sdb appears to contain a partition table (dos).
Error: Use the -f option to force overwrite.
[root ~]# mkfs.btrfs /dev/sdb -f
Error: unable to open /dev/sdb: Device or resource busy
[root ~]#

I decided to just ignore the third step and go on. The docker-engine seemed to run just fine, but when I try to run the hello-world container I got an error:

[root ~]# docker run hello-world
Timestamp: 2016-01-13 14:58:06.420677559 -0200 BRST
Code: System error

Message: mkdir /var/lib/docker/devicemapper/mnt/724ed94d9249b636d6820fb8c2e4ba64232f426812e5b03545762532 751f434e/rootfs/sys/fs/cgroup: no such file or directory

Frames:

0: setupRootfs
Package: github.com/opencontainers/runc/libcontainer
File: rootfs_linux.go@40

1: Init
Package: github.com/opencontainers/runc/libcontainer.(*linuxStandardInit)
File: standard_init_linux.go@57

2: StartInitialization
Package: github.com/opencontainers/runc/libcontainer.(*LinuxFactory)
File: factory_linux.go@242

3: initializer
Package: github.com/docker/docker/daemon/execdriver/native
File: init.go@35

4: Init
Package: github.com/docker/docker/pkg/reexec
File: reexec.go@26

5: main
Package: main
File: docker.go@18

6: main
Package: runtime
File: proc.go@63

7: goexit
Package: runtime
File: asm_amd64.s@2232
Error response from daemon: Cannot start container 724ed94d9249b636d6820fb8c2e4ba64232f426812e5b03545762 532751f434e: [8] System error: mkdir /var/lib/docker/devicemapper/mnt/724ed94d9249b636d6820fb8c2e4ba6423 2f426812e5b03545762532751f434e/rootfs/sys/fs/cgroup: no such file or directory

Can anybody help me with this?

My knowledge on both Linux and Docker are quite few, so if I forgot to mention any important information please ask!!=o)


(Pauloleal) #2

Just an update:

I researched what I was doing wrong on step 3 and fixed it, but the results remains the same.