Virtual machines have to emulate hardware whereas containerized applications run directly on the server that hosts them. That makes containers faster than virtual machines since they have less overhead.
If you are looking for an online course to learn Docker, you can enroll in the Docker Course by Intellipaat
Also, watch this video on Docker vs VM to understand more: