构buildnginx容器时面临身份validation和权限问题

码:
版本:“2”设置:conductor_base:centos:7服务:ansible.play_container:from:“nginx_base”angular色:

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" 

请帮助解决权限错误

我很乐意尝试帮助,但是需要更多的信息来分析您的问题。 如果你试图清理上面YAML的格式,那么包括ansible-container --debug version的debuggingansible-container --debug version的输出,并且包含你的版本的完整debugging输出ansible-container --debug build – debuggingansible-container --debug build -我将能够成为服务。 谢谢!