How to update Ghost with Docker
So round rolls the time of year again where I remember I have a blog and would you look at that the folks over at Ghost have released a new version.
However, I can’t remember how to upgrade my site easily to the new version. That is why this blog post now exists, so assuming you have a persisted volume, the following is the solution.
Firstly pull the latest docker image
docker pull ghost
Stop the existing container
docker container stop mycontainername
Re-create the container using your existing command you used to run it originally
docker run -d -p 443:443 -e url=https://example.com --name mycontainername -v ghost-data:/var/lib/ghost/content ghost
Thats it, the container should now be running and pointing at your existing data. You will just need to login to the ghost admin to complete the upgrade.