How to pass playbook tags to ansible-container?

I created playbooks with tags.
I want to use ansible-container to test my playbooks.
According to the Ansible documentation on ansible-container build,
it is possible to add playbook parameters, but it doesn’t work.

ansible-container build --  --tags "pre-install, install"

I get the following error:

  • Ansible error due to GMP package version on Centos6
  • using ansible for provisioning docker containers
  • How do you set encrypted Travis env variables in docker?
  • Use Ansible to start Docker containers on docker-machine?
  • What are the benefits of provisioning a Docker container with Ansible instead of a Dockerfile?
  • Ansible Variables only X times per host
  • ansible-container_1 | ERROR! the playbook: [–tags, could not be found
    ansible_ansible-container_1 exited with code 1

  • Can't connect to MySQL docker container launched via ansible
  • Docker image is not visible when I run docker ps
  • ansible docker env var not available in container
  • Deploying latest docker containers with ansible
  • Docker compose and ansible: site.yml does not appear to be a file
  • How to update docker in aws ec2
  • One Solution collect form web for “How to pass playbook tags to ansible-container?”

    Remove the space between tags:

    --tags 'pre-install,install' instead of --tags 'pre-install, install'

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.