Which Gerrit version you had before? Migration steps might depend on the version upgrade path.
Are Gerrit's data folders stored inside the container or on volume on the host machine? If you had those inside the container then you need to copy the folders out. Docker volume mounts are more recommended.
I use the attached Docker Compose file for Gerrit start. Volume mounts are listed there. No need to touch the volumes between upgrades. But it is better to backup those before upgrade. Depending on your upgrade path (from which version you upgrade), you might need to start new Gerrit instance so that it first time reindexes etc. Go through Gerrit release notes to see what steps are needed. Just add the right command one by one and run 'docker-compose up', remove the command and make a real launch 'docker-compose up -d'.
Br. Mikko