mattermost/mattermost-team-edition:release-10 doesn’t have a shell. There’s no terminal, no sh, it is a distroless-style image.
We add in
container_name: mattermost
This assign a name to the docker container so that we can run mmctl easier.
docker exec -it $(docker ps -q -f “label=com.docker.compose.service=mattermost”) /mattermost/bin/mmctl –local user delete [username] –confirm
The code above will look up the container with the name mattermost and run mmctl as a local user.
mmctl is new, there’s an older command system that won’t work for new mattermost.


