Update Docker container
After installing Redmine with Docker, it's been a long time, and in the days of maintaining the server, the Redmine version was also upgraded.
Just think about upgrading the container, too.
First, the general idea:
- Upgrade Docker Image
- Close on the container, and remove the
- Re-open the new container so that the new code can be used
- Upgrade Database
Upgrade Docker Image
Upgrading the image is simple, just pull down the latest data from the server.
docker pull quay.io/sameersbn/redmine:latest
Close on the container, and remove the
To the working directory/data, use Docker-compose to close the level container
cd /datadocker-compose stopdocker rm data_redmine_1
Re-open the new container so that the new code can be used
Additional configuration of the environment parameters due to code upgrade
REDMINE_SECRET_TOKENDB_NAME
These two are log prompt me, another discovery service upgrade, the old user can not log in, check the reason only know because the default value of the database name has changed.
There are a number of other parameters that may be affected, and you need to take a closer look at the details page.
docker-compose start
Upgrade Database
docker exec -it data_redmine_1 bashcd $WORKDIRRAILS_ENV=production bundle exec rake db:migrate
Update Docker container