You can get bash access to the docker instance by running:
sudo docker exec -i -t <docker-container-name> /bin/bash
Once in, you need to cd
into the mattermost directory which should be in /opt/
or /home/ubuntu/
. Once in there you can run
bin/platform -help
To see the commands you can run.