Depending on what method you use, you would either have to change the configuration for port mapping in a file or when you run the container. It’s simple enough, and you should be able to figure it out quite easily. If not, help for Docker related stuff is never far away.
I did recommend Pihole in my original reply. But there’s no way to block Youtube ads using it, as was being asked in the reply to my original reply.