New to docker. Installing images and running containers

I am trying to install and run a mailer using following command:

docker run -d \
-- name mailer \

And I am getting the following error:

Unable to find image 'name:latest' locally
docker: Error response from daemon: pull access denied for name, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Would appreciate if anyone could explain what is being communicated and how to resolve it.

Is that a space between -- and name ? it should look like:

docker run -d --name mailer yourmailer:latest

yourmailer:latest is the image you are trying to deploy.