Set MAX_SESSION_AGE using Docker on AWS

Hello Friends -

Trying to change the max_session_age using Metabase on Elastic Beanstalk with Docker. I am connected to my beanstalk console and running the following command.

docker run -d -p 3000:3000 -e MAX_SESSION_AGE="14000" --name metabase metabase/metabase

I get the error - Conflict. The container name "/metabase" is already in use by container "289e6956b92013e645e33f4c7ca2f9ae37fe29fa9d0dd02e630d581b4b7efe8d
". You have to remove (or rename) that container to be able to reuse that name.

Can someone point me in the right direction for fixing my syntax so I can change the MAX_SESSION_AGE?

Thanks!

Hi @VIVBI
When using EB, you have to apply environment variables via the control panel:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-softwaresettings.html#environments-cfg-softwaresettings-console
By the way, the default is 20160 minutes, which is two weeks:
https://github.com/metabase/metabase/blob/master/docs/operations-guide/environment-variables.md#max_session_age

1 Like