Can't run Phoenix using docker-compose

@Exadra37
I succeeded to build an image from new dockerfile, with all boot logic in runtime.exs as you said, but when I try:

sudo docker container run --rm -it -p 127.0.0.1:4000:4000 --name my_app elixir/my_app

I get

mkdir: can't create directory '/home/elixir/app/tmp': Permission denied
ERROR: Cannot start release because it could not write /home/elixir/app/tmp/myapp-0.1.0-20210411150040-8d6a.runtime.config