构建nginx容器时面临身份验证和权限问题

时间:2017-12-01 12:24:27

标签: authentication docker nginx centos7 ansible-container

代码:
    版本:'2'     设置:     conductor_base:centos:7     服务:     ansible.play_container:     来自:“nginx_base”     作用:

nginx_container
ports:
"xxx"
user: root
command: ['app/xxx/docker-entrypoint.sh']
registries: {}```

OS/Environment :
Ansible Container, version 0.9.2
Linux, 3.10.0-327.13.1.el7.x86_64, #1 SMP Mon Feb 29 13:22:02 EST 2016, x86_64
2.7.5 (default, May 3 2017, 07:55:04)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] /usr/bin/python

使用的命令:     Sudo ansible-container --debug build

Error Log:
fatal: [ansible.nginx-container]: UNREACHABLE! => {
    "changed": false,
    "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp/ansible-tmp-1512122910.09-221104636739910 `\" && echo ansible-tmp-1512122910.09-221104636739910=\"` echo ~/.ansible/tmp/ansible-tmp-1512122910.09-221104636739910 `\" ), exited with result 1, stderr output: Error response from daemon: Container c94048b2a046a9077fbff0558919ce55704e6b8634af611abe6ec2d58a2ccd18 is not running\n"

请帮助解决权限错误

1 个答案:

答案 0 :(得分:0)

我很乐意尝试提供帮助,但是需要更多信息来分类您的问题。如果您想尝试清理上面的YAML格式,请包含ansible-container --debug version的输出,并使用ansible-container --debug build包含构建的完整调试输出 - I&# 39;能够服务。谢谢!