How To Run Selenium WebDriver With Docker?

What is a Docker?
A Docker is similar to a virtual machine which consists of Docker containers. By using the container we will be able to create, deploy and run the applications. Then here comes a question like what is a container?. A Docker container allows you to package up an application with all the parts it needs, such as libraries and other dependencies, and ship it out as one package.