The best solution seems to be to upgrade Docker:
How did I upgrade Docker Client from 19 to 24 on Debian 10?