Say we need to set following environment variable in a running container:
we have tried setting it using the export command for example like:
$ docker exec my-container sh -c ‘export APP_ENV=PROD’
and also with the -it option:
$ docker exec -it my-container /bin/bash
but the problem is that it disappears the moment we logout of the container. How can we set it permanently?