Upgrading mastodon in Docker
If you’re running a Mastodon instance in Docker and need to upgrade, use the following commands to upgrade to a new tagged release (e.g. 1.3.3):
git fetch
git status
git stash
git checkout v1.3.3
git stash pop
docker-compose build
docker-compose run --rm web rake db:migrate
docker-compose run --rm web rake assets:precompile
docker-compose up -d
The git stash command is used to prevent the new release from overwriting your config files and other files that you’ve changed
for your config.