我通过运行创建默认测试角色molecule init scenario default
然后我跑molecule test
GitLab CI 的输出如下:
"stderr": "\u001b[31mERROR: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon\u001b[0m\n\u001b[31mERROR: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon\u001b[0m",
"stderr_lines": [
"\u001b[31mERROR: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon\u001b[0m",
"\u001b[31mERROR: Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon\u001b[0m"
分子作用如下:
- name: Create Default Role
command: molecule init scenario default
args:
chdir: roles/amazon_cloudwatch_agent
- name: Run Molecule Test
command: molecule --debug test
args:
chdir: roles/amazon_cloudwatch_agent