How to run Mysql in Docker?

How to run Mysql in Docker?

Execute the command below.

For bash:

docker run -d \
  --name mysql-dev \
  -p 3306:3306 \
  -e MYSQL_ROOT_PASSWORD=p@55w0rd \
  -v mysql-data:/var/lib/mysql \
  mysql:8.0.44-debian

For powershell:

docker run -d `
  --name mysql-dev `
  -p 3306:3306 `
  -e MYSQL_ROOT_PASSWORD=p@55w0rd `
  -v mysql-data:/var/lib/mysql `
  mysql:8.0.44-debian

📢 For mac silicon specific:

mysql:8.0.44-debian does not support ARM architectureUse – so use mysql:latest instead of mysql:8.0.44-debian or check official docker hub for suitable image.

[Read More]

How to run Sql Server 2025 in Docker

How to run Sql Server 2025 in Docker

To be honest, since I have started using docker I have never installed any database in my machine. I use multiple databases and keeping each database up and running takes a toll on resources of your machine. And… you can not install some database like “sql server” on “mac”, then docker is only option for you. Any way, I think it is enough introduction. Let’s get started.

[Read More]

How to run PostgreSql in Docker

How to run PostgreSql in Docker

To be honest, since I have started using docker I have never installed any database in my machine. I use multiple databases and keeping each database up and running takes a toll on resources of your machine. And… you can not install some database like “sql server” on “mac”, then docker is only option for you. Any way, I think it is enough introduction. Let’s get started.

[Read More]

Containerizing Dotnet App With PostgreSql Using Docker Compose

Containerizing Dotnet App With PostgreSql Using Docker Compose

In this tutorial, we are going to containerize the .NET Web API application with docker and postgres. I am assuming you are familiar with docker. At least, you should have some understandings of how docker works. However, I have covered all the steps needed to create a docker container for your application, but I am not going to cover the theoretical concepts of docker.

📢Last updated : 21-Nov-2025

[Read More]

Containerizing Dotnet App With Sql Server Using Docker Compose

Containerizing Dotnet App With Sql Server Using Docker Compose

In this tutorial, we are going to containerize the .NET Web API application with docker. I am assuming you are familiar with docker. At least, you should have some understandings of how docker works. However, I have covered all the steps needed to create a docker container for your application, but I am not going to cover the theoretical concepts of docker.

Last updated on:

  • 20-November-2025

🔨Tools needed

  • Visual Studio Code (Free)
  • .Net 10.0 SDK (Free)
  • Docker desktop (Free)

🧑‍💻Tech used

  • .Net 10.0 Web APIs (controller APIs)
  • Ms SQL Server 2025 (within a container)
  • Docker compose

🍵Note: I am using windows 11 operating system. However, I also have tested it in the Linux mint xia and it is working fine.

[Read More]