Tag: ansible container

Nginx容器没有开始

I build the nginx container image successfully. but its not getting started. 我走进了图像使用sudodocker运行-it imageid / bin / sh并尝试启动nginx容器。 find用于启动下面的nginx的脚本: Entrypoint.sh: cd /app/server/sbin/ ./nginx -g 'daemon off' echo "After start" At the ./nginx command the script is not executing, am also not seeing any error. I cross verified the nginx status. 命令来检查我的图像中的nginx状态:nginx -t命令。 nginx:configuration文件/opv/nginx-18/nginx/nginx.conf语法正常nginx:configuration文件/opv/nginx-18/nginx/nginx.conftesting成功请让我知道如何启动nginx命令。

Ansible Container无法加载libsudo_util.so.0以执行特权模块

我正在试图使用Ansible容器为应该在图像中安装节点的基本示例。 当我使用ansible-container build命令时,在成功build立导体图像之后,第一个任务失败,导致与sudo相关的错误。 有问题的任务需要执行root权限。 我正在运行Debian GNU / Linux 9.2(扩展版),通过Docker APT存储库安装Docker 17.09.0-ce。 我试用了Debian Stretch(2.2.1.0-2)和Pypi(2.4.1.0)中的Ansible。 我从Pypi(0.9.3rc0)和最新的Git源码尝试了Ansible Container。 我总是得到完全相同的错误输出。 Ansible模块抱怨如下: sudo: error while loading shared libraries: libsudo_util.so.0: cannot open shared object file: No such file or directory 正在运行的任务如下所示: – name: Add the Node Source repository signing certificate to APT apt_key: id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280 keyserver: hkps://hkps.pool.sks-keyservers.net become: yes 导体以及我尝试创build的服务都使用debian:stretch基础图像。 我正在运行带有sudo的ansible-container […]