After resetting Portainer, it worked successfully. I don’t know the reason.
Thanks everyone for the help.