Use of mmctl cli with Docker

Hi, I’m new to MM

we run MM (mattermost-enterprise-edition:10.11.8) on Docker (Rocky Linux8) and I can’t figure out to use `mmctl` (which is also installed in /etc/… and declared in $PATH but I understood I should use the cli that is embedded in the docker file).

I’ve tried to use different flavors of
docker exec -it docker-mattermost-1 mmctl user list --local

but I’m just getting errors.

There are 0 users on local instance
Error: Failed to fetch users: We encountered an error while finding user profiles.

I found documentation to use `mattermost` cli and it outputs correct data but I need `mmctl` for other operations like `user create`.

What’s obviously missing in my configuration?

Guillaume

actually it works:
docker exec -ti <container-name> mmctl