Students_Installing Docker and SQL

 

Installing Docker and SQL Server Management Studio 18

System Requirements

Docker

To install Docker, one of the following operating system requirements must be met;

Windows

  • Windows 10, 64-bit operating system

    • Applies to Education, Enterprise, Home, and Pro distributions

    • Must be build 16299 or later

  • Hyper-V

  • 64-bit processor with Second Layer Address Translation

  • Containers Windows feature must be enabled

  • 4GB of system RAM

  • BIOS-level hardware virtualization supported and enabled in the BIOS

For more information, please see the following link; https://docs.docker.com/docker-for- windows/install/

SQL Server SQL Server Management Studio 18

To install SQL Server SQL Server Management Studio 18, the following requirements must be met;

Windows 64-bit operating system

  • Windows 7

  • Windows 8 or 8.1

  • Windows 10

  1. 6GB of physical storage

  2. 1GB of system RAM

For more information, please see the following link; https://docs.microsoft.com/en-us/sql/sql- server/install/hardware-and-software-requirements-for-installing-sql-server-ver15?view=sql-ser ver15

 

Installing Docker

 

  • Select the appropriate operating system.

 

  • On the bottom of the web browser, select the arrow to the right of the completed download. Select Open.

 

  • Ensure the following configurations have been selected. When prompted, select Ok.

 

  • Allow the installer to unpack files.

 

  • When prompted, select Close and Restart.

 

  • Select the Docker icon on the desktop to ensure its successful installation.

 

Composing a .yml file and using PowerShell

  • Create a new text file in the Documents folder.

  • Open the New Text Document and insert the following code;

 

version: "3.1" services:

db:

image: mcr.microsoft.com/mssql/server:2019-latest container_name: mssql2019

restart: always ports:

- 1433:1433

environment:

ACCEPT_EULA: Y

SA_PASSWORD: DC_LocalDev02 MSSQL_PID: Developer

volumes:

- ./mssqlvolume:/var/opt/mssql/data

 

  • On the upper left-hand corner, select Save as.

 

  • Name the document docker-compose.yml in the Documents folder.

 

  • Navigate to the Documents folder and ensure the file has saved correctly.

  • In the Documents folder, press Shift on the keyboard and right-click simultaneously. Select

Open PowerShell window here.

 

  • Ensure PS C:\Users\Username\Documents> appears in the PowerShell terminal.

 

  • Input ls in the terminal. Press Enter. Ensure docker-compose.yml is present in the Documents folder.

Troubleshooting: Ensure the correct file type of docker-compose. If the file type is .txt, recreate the file from Steps 14 to 18.

  • Input docker-compose up in the terminal. Press Enter.

If an error occurs and is a .yml file, restart the system and rerun the command.

 

  • A pop-up may appear on the bottom right-hand side of the screen. If applicable, select Share it.

 

  • The message, Recovery is complete. This message is an informational message only. No user action is required. will appear in the PowerShell terminal when completed.

 

  • Open the Docker application.

  • Locate the container on the main screen.

  • Select the arrow to the left of the container name. The file mssql2019 will appear.

 

  • Confirm the status of the container is Running.

  • Close Docker and PowerShell.

 

Installing SQL Server Management Studio (SSMS)

 

 

  • On the bottom of the web browser, select the arrow to the right of the completed download. Select Open.

 

  • When prompted, select Install.

  • Allow the software to install.

 

  • When completed, select Close.

 

Opening SQL Server Management Studio 18

In Windows Search, search SQL. Select Microsoft SQL Server Management Studio 18.

 

  • The Connect to Server log-in information will appear.

 

  • Change the log-in information to the following;

 

Server type: Database Engine Server name: localhost

Authentication: SQL Server Authentication Login: sa

Password: DC_LocalDev02

 

  • Select Connect.

 

  • The Object Explorer will be located on the left of the application.

Refer to future instructions to operate Object Explorer.

 

Comments or concerns about this content? We can be reached at https://www.ntc.edu/helpdesk