Upgrading 1.8.11 to 2.2.1 fails, mysql docker restarts

Hello, I am trying to upgrade a current docker install of 1.8.11 to the latest 2.2.1. I was following the how to upgrade docker guide. After putting the new 2.2.1 files into the folder and starting up the docker containers they all download and start. However, when I tried to visit the site I got a DB connection error. Checking docker ps, I noticed that the mysql container kept restarting.

I am not terribly familiar with Docker, so I am not sure how to proceed.

You need to check why the container is restarting.

If it’s on Windows with Docker Toolbox, then it might be that in your old docker-compose.yml file you had added a command: line as is necessary for that platform. If so, just copy that over to the new one.

If it’s on a different platform, then docker-compose logs cms-db will get you logs from that container so you can see why it’s restarting.

Oh, I bet that’s it. I am on windows, and my old docker-compose.yml did have a command line. I will add that and give it another shot. Thank you!

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.