In this tutorial, we’ll show you how to install Docker on Mac and set up relational database management systems (RDBMS) inside Docker containers.
We will cover:
✅ Installing Docker on Mac
✅ Setting up MS SQL Server, PostgreSQL, and Oracle in Docker
✅ Making first database connections using Azure Data Studio & DBeaver
✅ Managing containers (starting, stopping, and troubleshooting connections)
Commands & Prompts:
🔹 Microsoft SQL Server Command:
docker run --name sqlserver_container -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Password1' -e 'MSSQL_PID=Developer' -p 1433:1433 -h sqlServer2022 -d mcr.microsoft.com/mssql/server:2022-latest
(Optional: docker run --name your_container_name -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=your_password' -e 'MSSQL_PID=Developer' -p 1433:1433 -h sqlServer2022 -d mcr.microsoft.com/mssql/server:2022-latest)
🔹 PostgreSQL Command:
docker run --name docker_postgres -e POSTGRES_PASSWORD=123456 -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
(Optional: docker run --name your_container_name -e POSTGRES_PASSWORD=your_password -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres)
🔹 ORACLE Commands:
docker login container-registry.oracle.com
docker pull container-registry.oracle.com/database/express:21.3.0-xe
(Optional: docker pull container-registry.oracle.com/database/free:latest)
docker run -d --name your_container_name -p 1521:1521 -e ORACLE_PWD=your_password container-registry.oracle.com/database/express:21.3.0-xe
(Optional: docker run -d --name your_container_name -p 1521:1521 -e ORACLE_PWD=your_password container-registry.oracle.com/database/free:latest)
✔ Connection Details:
host: localhost
port: 1521
database: XEPDB1 (service name)
connection type: Basic
username: SYSTEM
role: Normal
password: your_password
Related Videos & Resources
📌 • How to Install Azure Data Studio on Mac an...
📌 • How to Install DBeaver on Mac and Connect ...
📌 Docker: https://docker.com
📌 DockerHub: https://hub.docker.com
📌 ORACLE Container Registry: https://container-registry.oracle.com
Chapters:
00:00 Introduction
01:10 Install Docker
02:40 Sign Up / Log In to Docker
03:20 Introduction to DockerHub
03:50 Install & Run MS SQL Server Container
04:40 Connect to MS SQL Server via Azure Data Studio
06:06 Connect to MS SQL Server via DBeaver
06:38 Install & Run PostgreSQL Container
07:07 Connect to PostgreSQL via DBeaver
08:29 Register for ORACLE Container Registry
09:05 Log In to ORACLE Container Registry
09:25 Install & Run ORACLE Container
10:14 Connect to ORACLE via DBeaver
🔔Don’t Forget!
✔ Like this video if it helped you!
✔ Subscribe for more tutorials!
✔ Drop a comment if you have any questions!
#Docker #MacOS #Database #MSSQL #PostgreSQL #Oracle #DBeaver #AzureDataStudio