Summary
I am trying to install Mattermost team edition container on a rocky linux 9 vm using podman and podman-compose, when running the compose up command the Mattermost container fails exiting with error.
[mattermost@vm-com docker]$ id
uid=2000(mattermost) gid=2000(mattermost) groups=2000(mattermost),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[mattermost@vm-com docker]$ ls -l ./volumes/app/mattermost
total 0
drwxr-xr-x. 2 mattermost mattermost 6 Jan 25 01:38 bleve-indexes
drwxr-xr-x. 3 mattermost mattermost 21 Jan 25 01:38 client
drwxr-xr-x. 2 mattermost mattermost 6 Jan 25 01:38 config
drwxr-xr-x. 2 mattermost mattermost 6 Jan 25 01:38 data
drwxr-xr-x. 2 mattermost mattermost 6 Jan 25 01:38 logs
drwxr-xr-x. 2 mattermost mattermost 6 Jan 25 01:38 plugins
MATTERMOST_IMAGE=mattermost-team-edition
MATTERMOST_IMAGE_TAG=9.4
Steps to reproduce
podman-compose -f docker-compose.yml -f docker-compose.without-nginx.yml up -d
Expected behavior
Mattermost up and running
Observed behavior
mattermost@vm-com docker]$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d2684cfc89ca docker.io/library/postgres:13-alpine postgres 57 seconds ago Up Less than a second docker_postgres_1
b9653db98835 docker.io/mattermost/mattermost-team-edition:9.4 mattermost 54 seconds ago Exited (1) 51 seconds ago (unhealthy) 0.0.0.0:8065->8065/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:8443->8443/udp docker_mattermost_1
[mattermost@vm-com docker]$ podman logs docker_mattermost_1
Error: failed to load configuration: could not create config file: open /mattermost/config/config.json: permission denied
Usage:
mattermost [flags]
mattermost [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
db Commands related to the database
export Export data from Mattermost
help Help about any command
import Import data.
jobserver Start the Mattermost job server
server Run the Mattermost server
version Display version information
Flags:
-c, --config string Configuration file to use.
-h, --help help for mattermost
Use "mattermost [command] --help" for more information about a command.