简体   繁体   English

使用devstack安装docker

[英]Installing docker with devstack

I am trying to install devstack and docker ( http://devstack.org/guides/single-machine.html ) onto a VM containing Ubuntu 13.10 Server. 我正在尝试将devstack和docker( http://devstack.org/guides/single-machine.html )安装到包含Ubuntu 13.10 Server的VM上。 devstack contains a docker installer script in tools/docker/install_docker.sh which it is recommended to run first before running the stack.sh installer script for devstack. devstack在tools / docker / install_docker.sh中包含一个docker安装程序脚本,建议在运行devstack的stack.sh安装程序脚本之前先运行。 I have patched the docker install script according to the bug report https://bugs.launchpad.net/devstack/+bug/1237581 however docker still reports a problem: 我已经根据错误报告https://bugs.launchpad.net/devstack/+bug/1237581修补了docker安装脚本,但是docker仍然报告了一个问题:

socat[NNNN] E connect(3, AF=1 "/var/run/docker.sock", 22): Connection refused socat [NNNN] E connect(3,AF = 1“ /var/run/docker.sock”,22):连接被拒绝

Does anyone know a fix for this problem? 有人知道解决此问题的方法吗? Thanks, David 谢谢大卫

If you get error messages regarding /var/run/docker.sock then either the docker daemon/service is not started or your user (devstack user) has no permissions. 如果您收到有关/var/run/docker.sock的错误消息,则说明docker daemon / service没有启动,或者您的用户(devstack用户)没有权限。

Start docker: 启动docker:

service docker restart

Add your user (devstack user) to the docker group. 将您的用户(devstack用户)添加到docker组。 Try to enumerate containers: 尝试枚举容器:

docker ps

If that still does not fix the problem then you might want to change the permission of /var/run/docker.sock directly: 如果那仍然不能解决问题,那么您可能想要直接更改/var/run/docker.sock的权限:

sudo chown vagrant:vagrant /var/run/docker.sock

Check your kernel ( uname -a ) and make sure it is 3.8 or latest. 检查您的内核(uname -a)并确保它是3.8或最新版本。 Also, make sure you are on a 64bit Ubuntu ( X86_64 distribution ). 另外,请确保您使用的是64位Ubuntu(X86_64发行版)。 The point is that the Docker daemon might not be starting (fails) because it is not supported on a 32 bit distribution. 关键是,由于32位发行版不支持Docker守护程序,因此它可能无法启动(失败)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM