Error Running Stardog container

Hello,

I'm trying to run stardog on a docker container on my Ubuntu 18.04. I run the following command:

sudo docker run -it -v ~/stardog-home/:/var/opt/stardog -p 5820:5820 stardog/stardog

However, when I do this, the following error pops up: "STARDOG_HOME '/var/opt/stardog/' is not writeable by the current user".

Any ideas as to how I deal with this?