Docker is used for packing and shipping the programs to another computing environment using containers making easier to create, deploy and run applications.
It helps another person to need not replicate the same environment as the environment in which the application is developed by the developer.
For example, a developer has developed a web application using PHP in a particular OS and used particular libraries and dependencies to integrate with SQL. When the developer sends it for testing, a tester has to replicate the environment using the same version of PHP and the same libraries, and same dependencies. It is not that easy to replicate the same environment without face problems any issues. We can also use Vms but using Docker is better because of its light-weight and more efficient.
If you want to learn Docker then check out this Docker Training by Intellipaat that provides instructor-led training, hands-on projects, and certification.
Also, watch this video on Docker to get started: