代码:
version: '2' settings: conductor\_base: centos:7 services: ansible.play\_container: from: "nginx\_base" roles: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"请帮助解决权限错误
发布于 2017-12-02 01:30:01
我很乐意为您提供帮助,但是需要更多的信息来对您的问题进行分类。如果您愿意尝试清理上面YAML的格式,包括ansible-container --debug version的输出,并包含您使用ansible-container --debug build构建的完整调试输出-我将能够为您服务。谢谢!
https://stackoverflow.com/questions/47593357
复制相似问题