openvz启动docker报错,求大神解决.

错误的具体操作如下,期待解决......
CT-101 /# systemctl start docker
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
CT-101 /# cat /var/log/messages

Jul 20 23:58:52 localhost systemd: Starting Docker Storage Setup...
Jul 20 23:58:52 localhost docker-storage-setup: Volume group "ploop30408p1" not found
Jul 20 23:58:52 localhost docker-storage-setup: Cannot process volume group ploop30408p1
Jul 20 23:58:52 localhost docker-storage-setup: Metadata volume docker-poolmeta already exists. Not creating a new one.
Jul 20 23:58:52 localhost docker-storage-setup: /dev/mapper/control: open failed: Operation not permitted
Jul 20 23:58:52 localhost docker-storage-setup: Failure to communicate with kernel device-mapper driver.
Jul 20 23:58:52 localhost docker-storage-setup: Check that device-mapper is available in the kernel.
Jul 20 23:58:52 localhost docker-storage-setup: Incompatible libdevmapper (unknown version) and kernel driver (unknown version).
Jul 20 23:58:52 localhost docker-storage-setup: striped: Required device-mapper target(s) not detected in your kernel.
Jul 20 23:58:52 localhost docker-storage-setup: Run `lvcreate --help' for more information.
Jul 20 23:58:52 localhost systemd: docker-storage-setup.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Jul 20 23:58:52 localhost systemd: Failed to start Docker Storage Setup.
Jul 20 23:58:52 localhost systemd: Unit docker-storage-setup.service entered failed state.
Jul 20 23:58:52 localhost systemd: Starting Docker Application Container Engine...
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=error msg="'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded."
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=warning msg="Docker could not enable SELinux on the host system"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=info msg="+job init_networkdriver()"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=info msg="+job serveapi(unix:///var/run/docker.sock)"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=warning msg="Running modprobe bridge nf_nat failed with message: , error: exit status 1"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=warning msg="port allocator - using fallback port range 49153-65535 due to error: open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory"
Jul 20 23:58:52 localhost docker: inappropriate ioctl for device
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=info msg="-job init_networkdriver() = ERR (1)"
Jul 20 23:58:52 localhost docker: time="2015-07-20T23:58:52-04:00" level=fatal msg="Shutting down daemon due to errors: inappropriate ioctl for device"
Jul 20 23:58:52 localhost systemd: docker.service: main process exited, code=exited, status=1/FAILURE
Jul 20 23:58:52 localhost systemd: Failed to start Docker Application Container Engine.
Jul 20 23:58:52 localhost systemd: Unit docker.service entered failed state.
CT-101 /# docker -d
ERRO[0000] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.
INFO[0000] +job init_networkdriver()                    
INFO[0000] +job serveapi(unix:///var/run/docker.sock)   
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
WARN[0000] Running modprobe bridge nf_nat failed with message: , error: exit status 1
WARN[0000] port allocator - using fallback port range 49153-65535 due to error: open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory
inappropriate ioctl for device
INFO[0000] -job init_networkdriver() = ERR (1)         
FATA[0000] Shutting down daemon due to errors: inappropriate ioctl for device
CT-101 /#

7回答

邓磊邓磊  系统运维工程师 , 游戏公司
回复 7# Grubin     你好,麻烦你试试修改一下/etc/sysconfig/docker,修改内容如下DOCKER_OPTS="--storage-driver=devicemapper"然后重启docker。显示全部
回复 7# Grubin


    你好,麻烦你试试修改一下/etc/sysconfig/docker,修改内容如下
DOCKER_OPTS="--storage-driver=devicemapper"
然后重启docker。收起
 2015-07-21
浏览11381
GrubinGrubin  其它 , china
回复 6# dl528888 /etc/sysconfig/docker  如下:CT-101 ~# cat /etc/sysconfig/docker# /etc/sysconfig/docker# Modify these options if you want to change the way the docker daemon runsOPTIONS='--selinux-enabled'DOCKER_CERT_PATH=/etc/docker# If yo...显示全部
回复 6# dl528888

/etc/sysconfig/docker  如下:
CT-101 ~# cat /etc/sysconfig/docker
# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs
OPTIONS='--selinux-enabled'

DOCKER_CERT_PATH=/etc/docker

# If you want to add your own registry to be used for docker search and docker
# pull use the ADD_REGISTRY option to list a set of registries, each prepended
# with --add-registry flag. The first registry added will be the first registry
# searched.
# ADD_REGISTRY='--add-registry registry.access.redhat.com'

# If you want to block registries from being used, uncomment the BLOCK_REGISTRY
# option and give it a set of registries, each prepended with --block-registry
# flag. For example adding docker.io will stop users from downloading images
# from docker.io
# BLOCK_REGISTRY='--block-registry'

# If you have a registry secured with https but do not have proper certs
# distributed, you can tell docker to not look for full authorization by
# adding the registry to the INSECURE_REGISTRY line and uncommenting it.
# INSECURE_REGISTRY='--insecure-registry'

# On an SELinux system, if you remove the --selinux-enabled option, you
# also need to turn on the docker_transition_unconfined boolean.
# setsebool -P docker_transition_unconfined 1

# Location used for temporary files, such as those created by
# docker load and build operations. Default is /var/lib/docker/tmp
# Can be overriden by setting the following environment variable.
# DOCKER_TMPDIR=/var/tmp

# Controls the /etc/cron.daily/docker-logrotate cron job status.
# To disable, uncomment the line below.
# LOGROTATE=false

/etc/sysconfig/docker-storage  如下:
CT-101 ~# cat /etc/sysconfig/docker-storage
# This file may be automatically generated by an installation program.

# By default, Docker uses a loopback-mounted sparse file in
# /var/lib/docker.  The loopback makes it slower, and there are some
# restrictive defaults, such as 100GB max storage.

# If your installation did not set a custom storage for Docker, you
# may do it below.

# Example: Use a custom pair of raw logical volumes (one for metadata,
# one for data).
# DOCKER_STORAGE_OPTIONS = --storage-opt dm.metadatadev=/dev/mylogvol/my-docker-metadata --storage-opt dm.datadev=/dev/mylogvol/my-docker-data

DOCKER_STORAGE_OPTIONS=

/etc/sysconfig/docker-network 如下:
CT-101 ~# cat /etc/sysconfig/docker-network
# /etc/sysconfig/docker-network
DOCKER_NETWORK_OPTIONS=
CT-101 ~#收起
 2015-07-21
浏览11735
邓磊邓磊  系统运维工程师 , 游戏公司
回复 5# Grubin     /etc/sysconfig/docker、/etc/sysconfig/docker-network、/etc/sysconfig/docker-storage这3个也列出来。显示全部
回复 5# Grubin


    /etc/sysconfig/docker、/etc/sysconfig/docker-network、/etc/sysconfig/docker-storage这3个也列出来。收起
 2015-07-21
浏览11379
GrubinGrubin  其它 , china
openvz内核版本:[root@localhost ~]# uname -aLinux localhost 3.10.0-123.1.2.vz7.5.25 #1 SMP Mon Jul 6 23:27:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linuxopenvz container  内核版本 及docker 版本:T-101 ~# uname -aLinux localhost 3.10.0-123.1.2.vz7...显示全部
openvz内核版本:
[root@localhost ~]# uname -a
Linux localhost 3.10.0-123.1.2.vz7.5.25 #1 SMP Mon Jul 6 23:27:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux


openvz container  内核版本 及docker 版本:
T-101 ~# uname -a
Linux localhost 3.10.0-123.1.2.vz7.5.25 #1 SMP Mon Jul 6 23:27:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
CT-101 ~# docker
docker                docker-fetch          docker-storage-setup  dockertarsum         
CT-101 ~# docker --
--add-registry       --daemon             --exec-driver        --help               --ip-forward         --log-level          --storage-driver     --tlskey
--api-cors-header    --debug              --fixed-cidr         --host               --ip-masq            --mtu                --storage-opt        --tlsverify
--bip                --default-ulimit     --fixed-cidr-v6      --icc                --iptables           --pidfile            --tls                --version
--block-registry     --dns                --graph              --insecure-registry  --ipv6               --registry-mirror    --tlscacert         
--bridge             --dns-search         --group              --ip                 --label              --selinux-enabled    --tlscert            
CT-101 ~# docker --version
Docker version 1.6.2, build ba1f6c3/1.6.2
CT-101 ~#收起
 2015-07-21
浏览11394
邓磊邓磊  系统运维工程师 , 游戏公司
你的系统版本与docker版本,已经docker的配置列出一下吧。显示全部
你的系统版本与docker版本,已经docker的配置列出一下吧。收起
 2015-07-21
浏览11246
GrubinGrubin  其它 , china
回复 2# 胶东牛国磊 这个是centos,没有使用sudo显示全部
回复 2# 胶东牛国磊
这个是centos,没有使用sudo收起
 2015-07-21
浏览11192
胶东牛国磊胶东牛国磊  系统架构师 , 百度游戏
/dev/mapper/control: open failed: Operation not permitted根据第一处错误判断,可能是由于权限问题导致。你加上sudo试试显示全部
/dev/mapper/control: open failed: Operation not permitted
根据第一处错误判断,可能是由于权限问题导致。你加上sudo试试收起
 2015-07-21
浏览12594

提问者

Grubin其它, china

问题状态

  • 发布时间:2015-07-21
  • 关注会员:1 人
  • 问题浏览:26802
  • 最近回答:2015-07-21