'curl' isn't installed by default on Debian. The installation script tries to run docker installation script by fetching it via 'curl' but if it isn't installed, it fails all together.
The safest bet would be to make sure 'curl' is installed before getting to other steps.