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

错误的具体操作如下,期待解决......CT-101 /# systemctl start dockerJob for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.CT-101 /# cat /var/log/messagesJul 20 23:58:52 localhost systemd: Starting Docker S...显示全部
错误的具体操作如下,期待解决......
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 /#收起
参与13

查看其它 8 个回答Grubin的回答

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 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 ~#
IT其它 · 2015-07-21
浏览19375

回答者

Grubin
其它china
擅长领域: 云计算Docker容器引擎

回答状态

  • 发布时间:2015-07-21
  • 关注会员:3 人
  • 回答浏览:19375
  • X社区推广