首页 > 解决方案 > docker:创建容器时出错:400 客户端错误:错误请求(\“无效的参考格式\”)“

问题描述

在尝试为 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

我如何才能看到后台真正发生的事情,ia 可以查看的任何详细的 docker 锁?消息本身对我来说有点没用。我已经将 ansible 设置为详细,但这也无济于事。

标签: dockeransibleansible-awx

解决方案


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

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

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


推荐阅读