Upgrading from Ghost 1 to Ghost 2 in Docker Container

Hm, this seemed to go too smooth.

My old ghost container had been started with something like this:

docker run -d -e url=http://urgarg.org --name daniels-blog-ghost -v /var/lib/ghost/daniels-blog-data:/var/lib/ghost/content ghost:1-alpine

I copied /var/lib/ghost/daniels-blog-data to another machine and then mounted this content library in the latest Ghost 1 container with

docker run -d  -p 3001:2368 --name daniels-blog-ghostv1 -v /var/lib/ghost/daniels-blog-data:/var/lib/ghost/content ghost:1-alpine

After a quick check that the content was in displaying ok I stopped the container with docker stop daniels-blog-ghostv1.

The upgrade was a simple

docker run -d -e url=http://testing.urgarg.org -p 3001:2368 --name daniels-blog-ghostv2 -v /var/lib/ghost/daniels-blog-data:/var/lib/ghost/content ghost:2-alpine

All content displays properly and I am on version 2.

Screenshot from admin panel of upgraded host