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 can i force remove a docker container using 'docker_container' module of Ansible?
  • Why ansible keeps recreating docker containers with state “started”
  • OpenShift Cloud Computing: Advanced installation
  • Issues getting Ansible to work with Boot2Docker
  • Ansible, running role multiple times with different parameter sets
  • Behaviour of Ansible hosts: setting on Vagrant or Docker
  • ansible-container_1 | ERROR! the playbook: [–tags, could not be found
    ansible_ansible-container_1 exited with code 1

  • Add/edit files inside a docker container using a remotely?
  • Why >>> eval “$(docker-machine env default)” in a ansible playbook script return “No such file or directory”
  • docker-compose build error: command 'gcc' failed with exit status 4
  • How to pass securely SSH Keys to Docker Build?
  • Get IP address of Docker with Ansible
  • CentOS with Systemd on Docker
  • 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.