Stop the containers and recreate them
use --force-recreate with docker compose up command it will re-create containers with correct assets from image.
Assumption in most answers is that you’re using a Debian or Ubuntu VM and not using containers. Anyone using containers please mention you’re using containers, It is useful for me to quote that and point our fixes.
sudo is not available in containers, so changing permissions with sudo will not work.
Again if you read FAQ is says to not do bench build in containers. Further changing the permissions is not at all recommended!