Hi,
First of all I would like to inform you guys that I am a newbie in docker and linux so please forgive my stupid questions or remarks if any.
I have successfully installed docker on CentOS 7 using the described in here CentOS | Docker Docs.
Please note that I am using RT kernel 3.10.104-rt116.
But when I try to run the hello-world application in docker, I get the following error.
[root@Imran ~]# sudo docker run --rm hello-world
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from library/hello-world
78445dd45222: Extracting 971 B/971 B
docker: failed to register layer: devmapper: Error mounting ‘/dev/mapper/docker-253:0-140399561-7005371d5ef5c995d9af5290e36a2507372124823fdce8c673aa569d1fc5c2e9’ on ‘/var/lib/docker/devicemapper/mnt/7005371d5ef5c995d9af5290e36a2507372124823fdce8c673aa569d1fc5c2e9’: invalid argument.
See ‘docker run --help’.
my docker version is the latest one:
docker -v
Docker version 1.13.0-rc7, build 48a9e53
Does anyone have any idea so as to why is this error occurring?
As a side help I came across the check-config.sh script from docker webpage and when I run it I see the following output.
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled (as module)
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled (as module)
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: missing
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled
Optional Features:
- CONFIG_USER_NS: missing
(RHEL7/CentOS7: User namespaces disabled; add ‘user_namespace.enable=1’ to boot command line) - CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: missing
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
- CONFIG_MEMCG_KMEM: enabled
- CONFIG_RESOURCE_COUNTERS: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: enabled
- CONFIG_CGROUP_HUGETLB: enabled
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_NETPRIO_CGROUP: enabled (as module)
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT3_FS: missing
- CONFIG_EXT3_FS_XATTR: missing
- CONFIG_EXT3_FS_POSIX_ACL: missing
- CONFIG_EXT3_FS_SECURITY: missing
(enable these ext3 configs if you are using ext3 as backing filesystem) - CONFIG_EXT4_FS: enabled (as module)
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
- “overlay”:
- CONFIG_VXLAN: enabled (as module)
Optional (for encrypted networks):- CONFIG_CRYPTO: enabled
- CONFIG_CRYPTO_AEAD: enabled
- CONFIG_CRYPTO_GCM: enabled (as module)
- CONFIG_CRYPTO_SEQIV: enabled
- CONFIG_CRYPTO_GHASH: enabled (as module)
- CONFIG_XFRM: enabled
- CONFIG_XFRM_USER: enabled
- CONFIG_XFRM_ALGO: enabled
- CONFIG_INET_ESP: enabled (as module)
- CONFIG_INET_XFRM_MODE_TRANSPORT: enabled (as module)
- CONFIG_VXLAN: enabled (as module)
- “ipvlan”:
- CONFIG_IPVLAN: missing
- “macvlan”:
- CONFIG_MACVLAN: enabled (as module)
- CONFIG_DUMMY: enabled (as module)
- “ftp,tftp client in container”:
- CONFIG_NF_NAT_FTP: enabled (as module)
- CONFIG_NF_CONNTRACK_FTP: enabled (as module)
- CONFIG_NF_NAT_TFTP: enabled (as module)
- CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
- “overlay”:
- Storage Drivers:
- “aufs”:
- CONFIG_AUFS_FS: missing
- “btrfs”:
- CONFIG_BTRFS_FS: enabled (as module)
- CONFIG_BTRFS_FS_POSIX_ACL: enabled
- “devicemapper”:
- CONFIG_BLK_DEV_DM: enabled (as module)
- CONFIG_DM_THIN_PROVISIONING: enabled (as module)
- “overlay”:
- CONFIG_OVERLAY_FS: missing
- “zfs”:
- /dev/zfs: missing
- zfs command: missing
- zpool command: missing
- “aufs”:
Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000
I see that in necessary config I am missing “CONFIG_IP_NF_NAT” so I have tried to find this option using make menuconfig but I could not find it. I tried to search this issue in open forums but I could not find a solution which works for me.
I shall be really grateful for your help.
Thanks
Regards
Imran