Ansible-container 构建没有 docker 图像

Ansible-container builds no docker image

我正在为 ansible-container 苦苦挣扎。我有一个类似于 here where it was suggested that docker is not configured correctly. Basically I have a bare bones example and no container is built. I have docker install on Ubuntu 16.04 as per instructions 中发现的问题 hello world 和 Ubuntu bash 示例都有效。

谁能告诉我一些 documentation/references 指示正确 docker 设置 and/or 调试此问题的最佳方法。我突然想到我的dns可能配置不正确。

我简单地使用了以下命令并得到了结果错误:

ansible-container init
ansible-container build
ansible-container run
ERROR: for ansible-container  invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\"/bin/false\\": stat /bin/false: no such file or directory\"\n"

您的 ansible/container.yml 有一行包含类似

的命令
command: ['/bin/false']

/bin/false 似乎不存在于上面写在同一个 ansible/container.yml 中的图像中。 如果您分享您的 ansible/container.yml 我们可以为您提供更多帮助。

您在 中表示:

I'm just trying to run an empty project. ansible-container init -> build -> run see https://docs.ansible.com/ansible-container/getting_started.html#dipping-a-toe-in-starting-from-scratch

您还问过:

Could someone point me to some documentation/references that indicate the correct docker setup and/or the best way of debugging this.

尽管在 Whosebug 上要求外部文档 off-topic,但您甚至懒得阅读眼前的文档,所以您如何期望另一份文档对你有帮助吗?

引用您引用的同一页面:

Let’s look at a working example. [ ]

ansible-container init ansible.django-gulp-nginx
ansible-container build
ansible-container run

您试图构建 运行 一个空骨架。没有指定容器(如果你打开 ansible/container.yml 你只会看到你需要添加内容的评论)并且没有写实际的剧本(ansible/main.yml)。