If you’re able to open the MariaDB Docker container, the /etc/mysql/mariadb.conf.d/50-server.cnf
file should have a line similar to this:
#max_allowed_packet = 1G
Un-commenting that line by removing the # symbol should allow the database to use the higher value. However if the container is deleted or recreated, the configuration change will be lost.