Updating
After updating the Docker Image follow these instructions.
- Bash into the
mariadb
container after updating the image by running
sudo docker exec -it mariadb bash
mariadb
being the name of your container
tip
You can view a list of running containers with this command
sudo docker ps
- upgrade the database by running
mysql_upgrade -u root -p
-
You will be prompted to use enter the
root
passord for your database. you should have created this when creating yourdocker-compose.yaml
file -
Exit the container by running
exit
- Restart the stack by running
sudo docker compose down && sudo docker compose up -d
- Check logs again
sudo docker logs mariadb