Installing Rasa into docker container

Hi I am trying to get Rasa installed into a docker container, but am running into the fallowing issue. This is a new Ubuntu server install with docker/docker-compose. I don’t have python or anything installed for the normal Rasa install. Could that be an issue? Should I run through a normal install first and then try this out?

$ sudo docker run -v $(pwd):/app rasa/rasa:latest init --no-prompt
2022-10-08 08:37:08 WARNING  rasa.utils.common  - Failed to write global config. Error: [Errno 13] Permission denied: '/app/.config'. Skipping.
Warning: Input is not a terminal (fd=0).
Welcome to Rasa! 🤖

To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.

Traceback (most recent call last):
  File "/usr/lib/python3.8/distutils/file_util.py", line 41, in _copy_file_contents
    fdst = open(dst, 'wb')
PermissionError: [Errno 13] Permission denied: './endpoints.yml'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/venv/bin/rasa", line 8, in <module>
    sys.exit(main())
  File "/opt/venv/lib/python3.8/site-packages/rasa/__main__.py", line 110, in main
    cmdline_arguments.func(cmdline_arguments)
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 238, in run
    init_project(args, path)
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 130, in init_project
    create_initial_project(".")
  File "/opt/venv/lib/python3.8/site-packages/rasa/cli/scaffold.py", line 139, in create_initial_project
    copy_tree(scaffold_path(), path)
  File "/usr/lib/python3.8/distutils/dir_util.py", line 174, in copy_tree
    copy_file(src_name, dst_name, preserve_mode,
  File "/usr/lib/python3.8/distutils/file_util.py", line 151, in copy_file
    _copy_file_contents(src, dst)
  File "/usr/lib/python3.8/distutils/file_util.py", line 43, in _copy_file_contents
    raise DistutilsFileError(
distutils.errors.DistutilsFileError: could not create './endpoints.yml': Permission denied

Since it says PermissionError, you can change the permission of the file and try again.

chmod 777 endpoints.yml