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:

  • How do I tag a local docker image with ansible docker_image module?
  • Alternating provisioning with Vagrant
  • Ansible roles task failing docker swarm node join
  • Can't connect to MySQL docker container launched via ansible
  • Behaviour of Ansible hosts: setting on Vagrant or Docker
  • Managing docker containers with ansible - best practices
  • ansible-container_1 | ERROR! the playbook: [–tags, could not be found
    ansible_ansible-container_1 exited with code 1

  • Ansible how to push local image to private registry
  • ansible-container variables in playbook
  • can I use ansible to start docker swarm services without compose?
  • Launch Docker Container using ansible-playbook from a locally available docker image
  • How to run etcd cluster in docker using ansible?
  • problems using Ansible to run docker tasks on OS X
  • 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.