Executing Selenium Scripts Using Docker ContainerInstalling Docker Container

Installing Docker Container

Docker Desktop is a user-friendly application for Mac, Windows, and Linux environments that helps you in building and sharing containerized applications.

To run Docker container, you must install Docker Desktop for windows. For required system requirements, refer to Docker Documentation.

Installation

To install Docker Desktop for windows, perform the following:

  1. Download Docker Desktop for Windows: Click here to download the Docker Desktop for windows installer.
  2. Navigate to the Downloads folder and double-click Docker Desktop Installer.exe.
  3. Click Yes to initiate the installation process to view the following screen. By default, both the checkboxes are selected. In this screen, click OK.
    Docker Desktop Configuration screen with Use WSL 2 and Add shortcut to desktop checked, OK highlighted
  4. Following screen appears with unpacking all the files, as shown:
    Docker Desktop 4.31.1 installer showing Unpacking files progress list
  5. Upon successful installation, in the following screen:
    1. You will see 'Installation Succeeded' message.
    2. Click Close and restart to complete the installation.
      Docker Desktop installation succeeded screen with Close and restart button highlighted
  6. By default, Docker Desktop is installed at C:\Program Files\Docker\Docker.

To verify if the installation is successful, perform the following:

  1. Open the command prompt and run the following command:
    docker --version
    
  2. Following message is displayed along with the version installed:
    Command prompt showing docker --version output as Docker version 26.1.4

Starting the Docker Desktop

Docker Desktop does not start automatically after installation. To start Docker Desktop, perform the following:

  1. Search for Docker, and select Docker Desktop in the search results.
  2. Search for Docker app. The Docker menu displays the Docker Subscription Service Agreement.
  3. Select Accept to continue. You can run Docker Desktop icon after you accept the terms and conditions.

    Docker Desktop requires you to agree to its terms before it can run. You have the option to accept the terms later by opening Docker Desktop.