Upgrading service with mem_reservation

Hello. I’m trying to upgrade service with mem_reservation: 10000000000 on a machine with 30GB Ram. Currently, we run 3 container instances per such machine. The problem is, when I upgrade this service, I see memory limit error. Looks like even stopped containers are counted in memory limit, which is insane because for the upgrade I need a double amount of RAM per machine. Is there any workaround for this?