Permission denied while saving model with docker-compose in AWS EC2

Hi, this is the error:

How can I bypass this? My docker-compose file for rasa training is this:

  rasa:
    image: rasa/rasa:latest-full
    networks: ['rasa-network']
    ports:
      - 5005:5005
    volumes:
      - ./:/app
    command:
      - train

I did this:

  1. sudo passwd root
  2. added my pw
  3. docker exec -u root -t -i CONTAINER_ID /bin/bash
  4. su - (typed in pw)
  5. apt-get install sudo -y
  6. sudo groupadd docker
  7. sudo usermod -aG docker $USER
  8. sudo chmod 755 models

But the error still persists, any advice?