docker:创建容器时出错:400客户端错误:错误的请求(\“无效的引用格式\”)“

时间:2018-07-16 08:39:03

标签: docker ansible ansible-awx

在尝试为ppc64le构建awx图像(ansibe可以工作)时,出现以下情况。

TASK [image_build : Build AWX distribution using container] ***************************************************************************************************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Error creating container: 400 Client Error: Bad Request (\"invalid reference format\")"}
        to retry, use: --limit @/root/awx/installer/install.retry

PLAY RECAP ****************************************************************************************************************************************************************************************************
localhost                  : ok=10   changed=3    unreachable=0    failed=1

我怎么才能看到后台发生了什么,任何冗长的docker locks 我可以嘲笑吗?消息本身对我来说毫无用处。我已经将ansible设置为冗长,但这也没有帮助。

1 个答案:

答案 0 :(得分:0)

Docker映像名称只能包含小写(a-z)字符。 您提供的图像名称不受支持,或者传递给buid(或容器)的变量(或路径)无法解析。

要启用调试日志,请在docker守护进程中添加“ --debug”(对于基于systemd的linux env,是/etc/systemd/system/multi-user.target.wants/docker.service)

以供参考:https://docs.docker.com/config/daemon/#configure-the-docker-daemon