简体   繁体   English

Docker Registrator:连接被拒绝

[英]Docker Registrator: Connection refused

[root@node1 sysconfig]# docker run -d -v /var/run/docker.sock:/tmp/docker.sock -h node1 progrium/registrator consul://ipaddress:8500
fcb44e6877b12d45c1ddbdf48eaeb210ca632bfbbfd695be96d736330987f10d

[root@node1 sysconfig]# docker logs fcb44e6877b12d45c1ddbdf48eaeb210ca632bfbbfd695be96d736330987f10d
2014/10/07 00:33:51 registrator: Using consul registry backend at consul:ipaddress//:8500
2014/10/07 00:33:51 registrator: dial unix /tmp/docker.sock: connection refused
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.

how do i fix this? 我该如何解决? thanks- 谢谢-

Docker requires root privileges, try running sudo docker run . Docker需要root特权,请尝试运行sudo docker run Also see https://docs.docker.com/articles/security/ . 另请参阅https://docs.docker.com/articles/security/

It is also possible to give non-root users access . 也可以授予非root用户访问权限

I've had the same issue on CentOS 6.4. 我在CentOS 6.4上遇到过同样的问题。

As per documentation : 根据文档

In general, a 3.8 Linux kernel is the minimum requirement for Docker, as some of the prior versions have known issues that are triggered by Docker 通常,对于Docker最低要求是3.8 Linux内核,因为某些先前版本具有由Docker触发的已知问题。

I resolved it after I installed the newest stable Linux kernel on the host machine. 在主机上安装了最新的稳定Linux内核后,我解决了该问题。

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

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