service module fails to start nginx usig a docker connection

I am using ansible to manage a group of Docker containers, using docker_connection.

All goes well unitl I am instructing nginx to be started in the container using this snippet

`

  • name: ensure nginx started
    service:
    name: nginx
    state: started

`

No error message is given but nginx is not started in the container

If I replace it by

`

  • name: ensure nginx started
    command: service nginx start

`

it gives a warning to consider using the service module, but it works. Am I doing somethnig wrong, or is this a kind of weird bug?

Run both using -vvvv and post the outputs here.