0

代码:
版本:'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"

请帮助解决权限错误

4

1 回答 1

0

我很乐意提供帮助,但是需要更多信息来对您的问题进行分类。如果您愿意尝试清理上面的 YAML 格式,请包含 的输出ansible-container --debug version,并包含您的构建中的完整调试输出ansible-container --debug build- 我将能够为您服务。谢谢!

于 2017-12-01T17:30:01.020 回答