Overview#
If you are using the docker-ghostblog or docker-ghostblog-cloudinary to run your blog, you can simply update to the latest version.
Sometimes you may need to upgrade the database schema, like the migration from 1.8.6 version to the 1.9.0.
After starting the blog, you’ll notice the container shuts down immediately and, checking the blog logs, you’ll find something like:
Migration Procedure#
docker pull mmornati/docker-ghostblog-cloudinary:1.9.0
docker pull mmornati/docker-ghostdbmigrate:1.9.0
docker run -it --rm --name blogmigrate -e NODE_ENV=production -e DB_CURRENT_VERSION=1.8.6 -v /opt/ghost-blog:/ghost-override mmornati/docker-ghostdbmigrate:1.9.0
docker run -d -p 2368:2368 -e WEB_URL=http://test.blog -e SERVER_HOST=12.4.23.5 -e SERVER_PORT=4000 -e CLOUDINARY_URL=cloudinary://87237872387:aaaaaaaaaaaa@blog-mornati-net -v /opt/data:/ghost-override mmornati/docker-ghostblog-cloudinary:1.9.0Enjoy your updated blog.