Update Docker container

Source: Internet
Author: User
Tags redmine

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.