The guide intends for it to be all done on the EC2 instance. It can be faster for some depending on the speed of your internet connection.
In the end, it really doesn’t matter where you clone the docker image to, whether it be an EC2 instance or your local machine – docker is docker.