简体   繁体   English

如何使用docker容器运行nginx?

[英]How to run nginx with docker container?

I tried to install nginx within my docker container, before the installation i want to run 我尝试在我想要运行的安装之前在我的docker容器中安装nginx

the docker run -i -t base /bin/bash command and but i got a error like this.. docker run -i -t base /bin/bash命令但是我得到了这样的错误..

WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. 警告:在resolv.conf和容器中找到本地(127.0.0.1)DNS解析程序无法使用它。

Using default external servers : [8.8.8.8 8.8.4.4] 使用默认外部服务器:[8.8.8.8 8.8.4.4]

[error] client.go:2298 Error getting size: bad file descriptor [error] client.go:2298获取大小时出错:文件描述符错误

How can i solve this? 我怎么解决这个问题?

I had the same problem. 我有同样的问题。 For me, this fixed it: 对我来说,这解决了它:

sudo apt-get install cgroup-lite

However, it seems to be a bunch of related problems. 但是,它似乎是一堆相关的问题。 For other solutions/work-arounds, see: https://github.com/dotcloud/docker/issues/4568 有关其他解决方案/解决方案,请参阅: https//github.com/dotcloud/docker/issues/4568

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

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