Tuesday, August 4, 2020

Docker Desktop Installation and Containers (Selenium, SQL Server On Mac)

This post contains the setup details of the Docker Desktop on Windows and Mac systems. Once the docker installation will complete, create the selenium hub/node and SQL Server (On Mac) containers -
  • Docker Desktop on Windows
  • Docker Desktop on Mac
  • Selenium hub/node Containers
  • SQL Server Container (On Mac)

Docker Desktop on Windows
------------------------------------------------------------------------------------
1. Download Docker stable version from the link - https://hub.docker.com/editions/community/docker-ce-desktop-windows/
2. Double click on the Docker Desktop Installer.exe to start the install process
3. Click on Ok button
4. Wait for complete the installation
5. Click on Close button
6. Double click on the Docker Desktop icon to start the Docker
7. The whale  in the notification area indicates that Docker is running, and accessible from a terminal
8. Run the command – "docker version" on command prompt



Docker Desktop on Windows
------------------------------------------------------------------------------------
1. Download docker stable version from the link - https://hub.docker.com/editions/community/docker-ce-desktop-mac
2. Docker desktop includes tools like Docker command line, Docker Compose, and Docker Notary command line
3. Double-click Docker.dmg to start the install process
4. Drag the Docker to Applications folder and wait for complete the process
5. Go to Applications folder and starts Docker, the whale in the top status bar shows that Docker is running, and accessible from a terminal
6. Run docker version to check that you have the latest release installed


Selenium hub/node Containers
------------------------------------------------------------------------------------
1. Launch the terminal or command prompt
2. Run this commands to install the selenium hub– docker pull selenium/hub
3. Run the below commands one by one to install the selenium nodes -  
                  docker pull selenium/node-firefox
                  docker pull selenium/node-chrome
                  docker pull selenium/node-firefox-debug
                    docker pull selenium/node-chrome-debug
4. Run the selenium hub using the below command - 
docker run -d -p 4444:4444 --name selenium-hub selenium/hub
5. Run the chrome node using the below command - 
docker run –d -P –p 5900:5900 --link selenium-hub:hub selenium/node-chrome-debug
6. Run the firefox node using the below command –
docker run –d -P –p 5902:5900 --link selenium-hub:hub selenium/node-firefox-debug
7. Now click on Docker Desktop dashboard and verify the containers are running -  
 


SQL Server Container On Docker Mac
------------------------------------------------------------------------------------
1. Launch terminal
2. Run the below command – docker pull mcr.microsoft.com/mssql/server:2019-latest
3. Execute the below command to start the SQL server –
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Passw0rd' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
Note – Provide the password as per your choice
4.  Get below like screen in Docker dashboard



No comments:

Post a Comment