I need to run a docker container only if its not already running. Given this command. How would I run it only if it does not exists.

```
docker run --name nginx -d nginx

```

I am open to any script or language.