nginx container not running

I’m trying to run the command below to create an nginx container…

as you can see I am following a tutorial, the thing is I tried many commands but always get the same results… so this is my latest attempt:

docker run --name nginx -d -p 80:80 --network some-network --mount type=bind,source="$(pwd)/nginx/target",target=/usr/share/nginx/html --mount type=bind,source="$(pwd)/nginx",target=/etc/nginx/conf.d,readonly nginx:latest

I tried this with -v as well… I’m trying to replace the default.conf config file on the nginx countainer…

in this case I am trying to replace the contents of /etc/nginx/conf.d but I tried to mount the file it self so same command but with
... --mount type=bind,source="$(pwd)/nginx/default.conf",target=/etc/nginx/conf.d/default.conf...

on one of my sources of inspiration I have a -v where the name of the file being placed on the content is default.conf:ro, this is from a docker-compose and I cant use one atm, not sure if the :ro is doing something… because when I use it on docker run the default file keeps being the default.conf and the :ro is next to it but not used…

can someone help me understand what I am missing on this?

Source: StackOverflow