- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我查了https://openvz.org/Docker_inside_CT
在我的 VPS 内核版本是 2.6.32-042stab120.11
托管确认他们中的一些客户正在使用安装了 docker 的 Openvz。所以我应该能够运行 Docker。
我试图为我的问题找到解决方案,但没有任何成功。
我可以安装 CentOS; debian7,8; Ubuntu 14,16。
我在 debian 8 和 ubuntu 16.04 上试过,我收到了同样的问题
在安装过程中,我收到错误:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2017-07-22 08:01:57 EDT; 38ms ago
Docs: https://docs.docker.com
Process: 22638 ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
Main PID: 22638 (code=exited, status=1/FAILURE)
Jul 22 08:01:57 xyz systemd[1]: Starting Docker Application Container Engine...
Jul 22 08:01:57 xyz docker[22638]: time="2017-07-22T08:01:57.543399289-04:00" level=fatal msg="Your Linux kernel version 2.6.32-042stab120.11 is unstable running Docker. Please upgrade your kernel to 3.10+."
Jul 22 08:01:57 xyz systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 08:01:57 xyz systemd[1]: Failed to start Docker Application Container Engine.
Jul 22 08:01:57 xyz systemd[1]: docker.service: Unit entered failed state.
Jul 22 08:01:57 xyz systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker.io (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)
Client:
Version: 1.10.3
API version: 1.22
Go version: go1.6.1
Git commit: 20f81dd
Built: Wed, 20 Apr 2016 14:19:16 -0700
OS/Arch: linux/amd64
An error occurred trying to connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.22/version: read unix @->/var/run/docker.sock: read: connection reset by peer
Jul 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.413474210-04:00" level=warning msg="Your Linux kernel version 2.6.32-042stab120.11 can be unstable running docker. Please upgrade your kernel to 3.10.0."
Jul 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.417040756-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 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.420093045-04:00" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_fil...be: WARNING: Modul
Jul 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.421785030-04:00" level=warning msg="Running modprobe nf_nat failed with message: `modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin fil...
Jul 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.446647894-04:00" level=info msg="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"
Jul 22 11:09:32 xyz docker[32115]: time="2017-07-22T11:09:32.457352813-04:00" level=fatal msg="Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: package not installed"
Jul 22 11:09:32 xyz systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 11:09:32 xyz systemd[1]: Failed to start Docker Application Container Engine.
Jul 22 11:09:32 xyz systemd[1]: docker.service: Unit entered failed state.
Jul 22 11:09:32 xyz systemd[1]: docker.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package docker-engine (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Errors were encountered while processing:
docker-engine
E: Sub-process /usr/bin/dpkg returned an error code (1)
最佳答案
我已经能够使用他们的 wiki 中的文档让 docker 在 OpenVZ 6 主机上的 CentOS 7 容器中运行。 ,但我没有在任何其他发行版上尝试过。
如果您查看 wiki,请注意限制。它只能运行 "vfs" storage driver所以你失去了很多 docker 存储的好处。
确保您的容器具有 veth 接口(interface),而不是默认的 venet 或 docker 不会启动并且会提示桥接问题(可能还需要为您的容器启用桥接功能)。
您还需要配置 docker 以使用 vfs 存储驱动程序,我从您发布的 1.9.1 错误中注意到它提示尝试使用覆盖存储。
我看到另一个关于 nf_nat 的错误,它表明主机正在限制容器中的 netfilter,如 wiki 中所述,需要将容器的 netfilter 设置为 full。
关于ubuntu - OpenVZ VPS 中的 Docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45254768/
我正在尝试通过以下命令更改 VPS 的密码: vzctl set 180 --userpasswd root:test123 --save 它给了我这个错误:CT 配置没有变化,没有保存 使用 Ope
我想限制每个容器的网络使用(例如上传和下载阈值)。我可以通过配置还是通过 vzctl以某种方式对发送/接收的流量设置限制? 我在 traffic shaping 上找到了文档但是没有prctl安装在我
我的一个 openvz 容器有一个非常奇怪的问题。 top、htop、free 和 openvz 工具报告的内存使用情况似乎是分配的 10GB 中的 ~4GB。 当我按内存使用情况列出进程或使用 ps
我在 openvz webpanel 中创建了自定义模板。我可以使用这个模板来创建虚拟机,但我无法启动它们。 这是执行vzctl start 333后的输出 正在启动容器... ploop库已加载成功
我有 OpenVZ VPS,但在清除缓存时遇到问题: 在 OpenVZ 中不工作 echo 3 >/proc/sys/vm/drop_caches 这个缓存怎么清除? 最佳答案 这是 reported
我是 OpenVZ 容器(运行 Debian Wheezy)中的客户,所以我无法访问主机。是否可以使用 fuse 创建环回设备以访问文件中的文件系统? 出于安全原因,管理员不允许访问其/dev/loo
我有一个 openvz 机器,我是 root,它是一个虚拟机,我是 ssh 到: >uname -a Linux molo 2.6.32-042stab084.25 #1 SMP Wed Feb 12
有一些关于 OpenVZ 中与 MongoDB 缓存相关的问题的讨论,我无法找到切实可行的解决方案。该问题与 OpenVZ 中的内存有关,因为 MongoDB 不只消耗空闲内存。我试图通过ulimit
我查了https://openvz.org/Docker_inside_CT 在我的 VPS 内核版本是 2.6.32-042stab120.11 托管确认他们中的一些客户正在使用安装了 docker
我有一个小型 OpenVZ 容器。2 个核心和 4096MB RAM。 我有mysql数据库(总大小为80MB InnoDb) 当我执行 100 个查询(例如 INSERT ON DUPLICATE
我是虚拟化世界的新手。有人可以向我解释一下 OpenVZ 和 Docker 之间的区别吗? 什么对 future 有好处? 利弊? 最佳答案 两者对容器的看法截然不同。 简而言之OpenVZ 将容器视
Vtonf是一款免费的基于web界面的控制面板(符合GPL),它可以管理OpenVz上虚拟专用服务器(VPS)。使用她甚至是那些有很少专业只是的用户也可以很简单地创建和管理OpenVZ上的虚拟机。到
环境:CentOS 6.7 作为宿主系统,OpenVZ 容器也是 CentOS 6.7。 容器有两个接口(interface):venet0(10.50.140.160,在主机的 vxbr0 中)和e
我已经在我的 debian jessie 服务器上安装了 ISPconfig,它运行良好,但我想将它用作虚拟服务器。我选择了 debian 8,因为我遵循了本教程: https://github.co
请帮助我真的不知道为什么它不起作用,这是日志 顺便说一句,我使用 SolusVM 作为 VPS 管理器。我按照给定的说明做了所有事情,但对我来说没有用。 我也在整个互联网上搜索以找到解决方案,但根本没
我正在尝试在 CentOS 6 上安装 OpenVZ。 我用这个指令来安装 OpenVZ : https://www.unixmen.com/install-and-configure-openvz-
我想编写业余应用程序并将其部署在 OpenVZ 上的 Linux 64 位上。我用谷歌搜索,似乎 MongoDB 在 OpenVZ 环境下不能很好地工作,所以要走的路是 CouchDB?或者对于只有一
我有一个OpenVZ VPS,操作系统是CentOS 6,我尝试安装Docker,但是Docker启动出错。 Starting cgconfig service: Error: cannot moun
已关闭。这个问题是 off-topic 。目前不接受答案。 想要改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 已关闭12 年前。 Improve th
我在 PVE 上运行一个 vz 容器(debian),我想在运行时使用 zsh 作为我的默认 shell: vzctl enter MY_CONTAINER_ID 我尝试在容器中运行 chsh 但没有
我是一名优秀的程序员,十分优秀!