You probably did this, but for anyone reading, if you copy commands from the internet, look up what all the commands and flags do to be sure you understand it fully, and then type it in yourself in a terminal instead of copy/paste. If you get an instruction to curl <something> | sh, split it into two steps, curl to get the script to a local file you can read, read it, then run if you know what it does. Do these things for anything you don’t trust 100%.
Good. To be honest I sometimes copy/paste too, but there is a possible trick to hide characters in the copied text with an automatic return at the end so when you paste you immediately run something you don’t intended. If I copy from some random shady blog I’d be more careful than from the official docker documentation I guess.