错误:对于ansible-container容器命令' /usr/local/bin/builder.sh'找不到或不存在

时间:2016-07-29 10:48:39

标签: ansible ansible-container

我在运行时遇到以下错误

$ ansible-container build

ERROR: for ansible-container  Container command '/usr/local/bin/builder.sh' not found or does not exist.

ansible / container.yml

version: "1"
services:
  web:
    image: busybox:latest

registries: {}

ansible / main.yml

- hosts:
  tasks:
    - name: Copy something
      copy: src=start_here.sh dest=/etc/start_here.sh

1 个答案:

答案 0 :(得分:0)

您缺少导体的设置。

version: "2"
settings:
  conductor:
    base: "centos:7"

然后你可以启动服务部分

services:
  mongo:
    from: "centos:7"