Docker Community Forums

Share and learn in the Docker community.

Unable to run docker images in CORE on Fedora23


(Ztguang) #1

step 1. install Fedora23

[root@localhost ~]# uname -a
Linux localhost.localdomain 4.4.8-300.fc23.x86_64 #1 SMP Wed Apr 20 16:59:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


step 2. install CORE on Fedora23

download CORE from https://github.com/coreemu/core
then install it


(Ztguang) #2

step 3. install docker 1.9.1 and run it on Fedora

dnf update -y
dnf -y install docker-io
systemctl start docker
docker run --rm -it busybox /bin/sh

that’s OK.

[root@localhost ~]# docker info
Containers: 1
Images: 4
Server Version: 1.9.1
Storage Driver: devicemapper
Pool Name: docker-8:5-675521-pool
Pool Blocksize: 65.54 kB
Base Device Size: 107.4 GB
Backing Filesystem:
Data file: /dev/loop2
Metadata file: /dev/loop3
Data Space Used: 70.84 MB
Data Space Total: 107.4 GB
Data Space Available: 13.96 GB
Metadata Space Used: 659.5 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.109 (2015-09-22)
Execution Driver: native-0.2
Logging Driver: journald
Kernel Version: 4.4.8-300.fc23.x86_64
Operating System: Fedora 23 (Workstation Edition)
CPUs: 4
Total Memory: 7.527 GiB
Name: localhost.localdomain
ID: GVHL:XD4U:A6WJ:Y5SY:DING:JEZI:XVSR:RMFI:5R2I:HOD6:7Y2H:AMS4
[root@localhost ~]#


(Ztguang) #3

step 4. run docker 1.9.1 in CORE on Fedora23

you can open /root/.core/configs/sample6-emane-rfpipe.imn in CORE.

[root@n6 n6.conf]# ifconfig
ctrl0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.0.6 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::216:3eff:fe04:58aa prefixlen 64 scopeid 0x20
ether 00:16:3e:04:58:aa txqueuelen 1000 (Ethernet)
RX packets 657 bytes 762773 (744.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 460 bytes 41176 (40.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
ether 02:42:5a:ec:0b:d1 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.6 netmask 255.255.255.255 broadcast 0.0.0.0
inet6 a::6 prefixlen 128 scopeid 0x0
inet6 fe80::200:ff:feaa:5 prefixlen 64 scopeid 0x20
ether 00:00:00:aa:00:05 txqueuelen 1000 (Ethernet)
RX packets 34 bytes 3536 (3.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 348 bytes 36864 (36.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@n6 n6.conf]# brctl show
bridge name bridge id STP enabled interfaces
docker0 8000.02425aec0bd1 no
[root@n6 n6.conf]#

[root@n6 n6.conf]# uname -a
Linux n6 4.4.8-300.fc23.x86_64 #1 SMP Wed Apr 20 16:59:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@n6 n6.conf]# docker daemon &
[1] 114
[root@n6 n6.conf]# WARN[0000] Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https docs.docker.com reference commandline daemon #daemon-storage-driver-option
WARN[0000] Usage of loopback devices is strongly discouraged for production use. Please use --storage-opt dm.thinpooldev or use man docker to refer to dm.thinpooldev section.
INFO[0000] [graphdriver] using prior storage driver "devicemapper"
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
WARN[0000] Your kernel does not support swap memory limit.
WARN[0000] Your kernel does not support memory reservation.
WARN[0000] Your kernel does not support oom control.
WARN[0000] Your kernel does not support memory swappiness.
WARN[0000] Your kernel does not support kernel memory limit.
WARN[0000] Your kernel does not support cgroup cpu shares
WARN[0000] Your kernel does not support cgroup cfs period
WARN[0000] Your kernel does not support cgroup cfs quotas
WARN[0000] Your kernel does not support cgroup blkio weight
INFO[0000] Loading containers: start.

INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon commit=ee06d03/1.9.1 execdriver=native-0.2 graphdriver=devicemapper version=1.9.1
INFO[0000] API listen on /var/run/docker.sock

[root@n6 n6.conf]# docker run --rm -it busybox /bin/sh
INFO[0015] {Action=create, LoginUID=4294967295, PID=159}
INFO[0016] {Action=attach, ID=3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20, LoginUID=4294967295, PID=159}
INFO[0016] {Action=start, ID=3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20, LoginUID=4294967295, PID=159, Config={Hostname=3a8111f2d6a7, AttachStdin=true, AttachStdout=true, AttachStderr=true, Tty=true, OpenStdin=true, StdinOnce=true, Cmd={parts:[/bin/sh]}, Image=busybox, NetworkDisabled=false, Labels=map[], StopSignal=SIGTERM}, HostConfig={LxcConf={values:[]}, OomKillDisable=false, MemorySwappiness=-1, Privileged=false, PortBindings=map[], PublishAllPorts=false, DNS=[], DNSOptions=[], DNSSearch=[], Devices=[], NetworkMode=default, RestartPolicy={Name:no MaximumRetryCount:0}, ReadonlyRootfs=false, LogConfig={Type:json-file Config:map[]}, ShmSize=67108864}}
WARN[0016] signal: killed
WARN[0017] failed to cleanup ipc mounts:
failed to umount /var/lib/docker/containers/3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20/shm: invalid argument
failed to umount /var/lib/docker/containers/3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20/mqueue: invalid argument
ERRO[0017] Error unmounting device 3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20: UnmountDevice: device not-mounted id 3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20
ERRO[0017] Handler for POST /v1.21/containers/3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20/start returned error: Cannot start container 3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20: [8] System error: mkdir /sys/fs/cgroup/perf_event: no such file or directory
ERRO[0017] HTTP Error err=Cannot start container 3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20: [8] System error: mkdir /sys/fs/cgroup/perf_event: no such file or directory statusCode=500
INFO[0017] {Action=remove, ID=3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20, LoginUID=4294967295, PID=159}
Error response from daemon: Cannot start container 3a8111f2d6a7d75fd49fcd880dd41e5a085f2e84cea99006f3be80430d2dfb20: [8] System error: mkdir /sys/fs/cgroup/perf_event: no such file or directory

[root@n6 n6.conf]#

[root@n6 n6.conf]# docker info
Containers: 1
Images: 4
Server Version: 1.9.1
Storage Driver: devicemapper
Pool Name: docker-8:5-675521-pool
Pool Blocksize: 65.54 kB
Base Device Size: 107.4 GB
Backing Filesystem:
Data file: /dev/loop2
Metadata file: /dev/loop3
Data Space Used: 70.84 MB
Data Space Total: 107.4 GB
Data Space Available: 13.96 GB
Metadata Space Used: 659.5 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: false
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.109 (2015-09-22)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.4.8-300.fc23.x86_64
Operating System: Fedora 23 (Workstation Edition) (containerized)
CPUs: 4
Total Memory: 7.527 GiB
Name: n6
ID: GVHL:XD4U:A6WJ:Y5SY:DING:JEZI:XVSR:RMFI:5R2I:HOD6:7Y2H:AMS4
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
[root@n6 n6.conf]#


(Ztguang) #4

step 5. install docker 1.11.1 and run it on Fedora

[root@localhost ~]# dnf remove docker-io
[root@localhost ~]# rm /var/lib/docker/ -rf
[root@localhost ~]# dnf update
[root@localhost ~]# dnf install docker-engine

[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# docker run --rm -it busybox /bin/sh

that’s OK.

[root@localhost ~]# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.11.1
Storage Driver: devicemapper
Pool Name: docker-8:5-675522-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop2
Metadata file: /dev/loop3
Data Space Used: 19.07 MB
Data Space Total: 107.4 GB
Data Space Available: 13.99 GB
Metadata Space Used: 589.8 kB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.147 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Either use --storage-opt dm.thinpooldev or use --storage-opt dm.no_warn_on_loop_devices=true to suppress this warning.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.109 (2015-09-22)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 4.4.8-300.fc23.x86_64
Operating System: Fedora 23 (Workstation Edition)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.527 GiB
Name: localhost.localdomain
ID: GVHL:XD4U:A6WJ:Y5SY:DING:JEZI:XVSR:RMFI:5R2I:HOD6:7Y2H:AMS4
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: index.docker.io v1
[root@localhost ~]#


(Ztguang) #5

step 6. run docker 1.11.1 in CORE on Fedora23

first, on Fedora23 CLI
[root@localhost ~]# systemctl stop docker.service

then, in CORE

[root@n6 n6.conf]# route add default gw 172.16.0.254

[root@n6 n6.conf]# ping aaaaa
PING aaaaa (10.3.9.254) 56(84) bytes of data.
64 bytes from 10.3.9.254: icmp_seq=1 ttl=59 time=0.273 ms
64 bytes from 10.3.9.254: icmp_seq=2 ttl=59 time=0.345 ms
^C
— aaaaa ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.273/0.309/0.345/0.036 ms

[root@n6 n6.conf]# docker images
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

[root@n6 n6.conf]# docker daemon &
[1] 111
[root@n6 n6.conf]# INFO[0000] New containerd process, pid: 116

WARN[0000] containerd: low RLIMIT_NOFILE changing to max current=1024 max=4096
ERRO[0001] devmapper: Udev sync is not supported. This will lead to data loss and unexpected behavior. Install a more recent version of libdevmapper or select a different storage driver. For more information, see docs.docker.com engine/reference/commandline/daemon/#daemon-storage-driver-option
ERRO[0001] [graphdriver] prior storage driver “devicemapper” failed: driver not supported
FATA[0001] Error starting daemon: error initializing graphdriver: driver not supported

[1]+ 退出 1 docker daemon

[root@n6 n6.conf]# docker daemon -s overlay &
[1] 139
[root@n6 n6.conf]# INFO[0000] previous instance of containerd still alive (116)
INFO[0000] Graph migration to content-addressability took 0.00 seconds
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
WARN[0000] Your kernel does not support swap memory limit.
WARN[0000] Your kernel does not support memory reservation.
WARN[0000] Your kernel does not support oom control.
WARN[0000] Your kernel does not support memory swappiness.
WARN[0000] Your kernel does not support kernel memory limit.
WARN[0000] Your kernel does not support cgroup cpu shares
WARN[0000] Your kernel does not support cgroup cfs period
WARN[0000] Your kernel does not support cgroup cfs quotas
WARN[0000] Your kernel does not support cgroup blkio weight
WARN[0000] Your kernel does not support cgroup blkio weight_device
WARN[0000] Your kernel does not support cgroup blkio throttle.read_bps_device
WARN[0000] Your kernel does not support cgroup blkio throttle.write_bps_device
WARN[0000] Your kernel does not support cgroup blkio throttle.read_iops_device
WARN[0000] Your kernel does not support cgroup blkio throttle.write_iops_device
INFO[0000] Loading containers: start.

INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon commit=5604cbe graphdriver=overlay version=1.11.1
INFO[0000] API listen on /var/run/docker.sock

[root@n6 n6.conf]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE

[root@n6 n6.conf]# docker run --rm -it busybox /bin/sh
ERRO[0032] Handler for POST /v1.23/containers/create returned error: No such image: busybox:latest
Unable to find image ‘busybox:latest’ locally
latest: Pulling from library/busybox
385e281300cc: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:4a887a2326ec9e0fa90cce7b4764b0e627b5d6afcb81a3f73c85dc29cea00048
Status: Downloaded newer image for busybox:latest
ERRO[0094] containerd: start container error=oci runtime error: mkdir /sys/fs/cgroup/cpuset: no such file or directory id=ed9d654d7f47305fc007e990d03e13367f2ad4107a90eb03749ccff951522768
ERRO[0039] Handler for POST /v1.23/containers/ed9d654d7f47305fc007e990d03e13367f2ad4107a90eb03749ccff951522768/start returned error: Container command ‘/bin/sh’ not found or does not exist.
docker: Error response from daemon: Container command ‘/bin/sh’ not found or does not exist…
[root@n6 n6.conf]#

[root@n6 n6.conf]# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.11.1
Storage Driver: overlay
Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 4.4.8-300.fc23.x86_64
Operating System: Fedora 23 (Workstation Edition) (containerized)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.527 GiB
Name: n6
ID: GVHL:XD4U:A6WJ:Y5SY:DING:JEZI:XVSR:RMFI:5R2I:HOD6:7Y2H:AMS4
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: index.docker.io/v1/
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
[root@n6 n6.conf]#


(Ztguang) #6

please pay attention to step 4 and step 6, I have failed in step 4 and step 6

step 4. run docker 1.9.1 in CORE on Fedora23
step 6. run docker 1.11.1 in CORE on Fedora23


(Ztguang) #7

waiting for help from you…