Hello,
I am able to test my roles on a CentOS 7 docker image using:
platforms:
- name: instance
image: centos:7
privileged: true
volume_mounts:
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro
command: "/usr/sbin/init"
capabilities:
- SYS_ADMIN
However, I am unable to test on a CentOS:6 image:
platforms:
- name: instance6
image: centos:6
privileged: true
volume_mounts:
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro
command: "/usr/sbin/init"
capabilities:
- SYS_ADMIN
When I run molecule test, I get this:
"msg": "Error starting container b4f534a257730ed8312b3c26c2556b729e6b413ffd5096a7c928480768238c58: 400 Client Error: Bad Request (\"{\"message\":\"OCI runtime create failed: container_linux.go:348: starting container process caused \\\"exec: \\\\\\\"/usr/sbin/init\\\\\\\": stat /usr/sbin/init: no such file or directory\\\": unknown\"}\")"
How can I test using a centos6 docker image?