Auto archiving on docker

Hi,
I’ve installed the docker version of Matomo but I didn’t exactly understand how to proceed.

Do I have to do it from the host or from the container with

sudo docker exec -it matomo_comp_app_1  /bin/ash

?
Can you please help me?
Thank you,
Alessandro