I try to install docker on Raspberry PI 4 But i get error

sudo nano /etc/apt/sources.list.d/docker.list

and add the following line

deb [arch=armhf] https://download.docker.com/linux/debian buster stable

This works perfectly fine for me.

Still replying since this showed up quite high on a Google Search for me.