Need some help with read/write issues to a volume from Mosquitto image

Alright, so I’m trying to set up Mosquitto MQTT server in Docker. The image for it looks for the config in /mosquitto/config, data in /mosquitto/data and logs in /mosquitto/logs. So I want those in a volume. So I create the config, data, and logs directories under /srv/mosquitto and then I run this command:

sudo docker run -it -p 1883:1883 -p 9001:9001 --name mqtt -v /srv/mosquitto/:/mosquitto/:rw eclipse-mosquitto

But I’m met with this error message which seems to suggest permissions are messed up… I’m not really sure why though. It is able to read the config file just fine in /mosquitto/config/mosquitto.conf but for some reason it can’t write to /mosquitto/log/

1491434855: Error: Unable to open log file /mosquitto/log/mosquitto.log for writing.

I am brand new to docker and trying to figure this all out. Thanks for helping!