Tag Archives: Docker

Python – Dockerizing a FastAPI application

By | 27/03/2024

In this post, we will see how to dockerizing the FastAPI application that we created in this previous post. First of all, we create a requirement.txt file where we will insert all libraries that we need to install to use the application: [REQUIREMENTS.TXT] Then, we create the dockerfile: [DOCKERFILE] Finally, to avoid unnecessarily copying everything… Read More: Python – Dockerizing a FastAPI application »

Docker – How to copy a file from Host to Docker container and vice versa

By | 13/07/2022

In this post, we will see how to copy a file from our system to a Docker container and vice versa. We start defining and running this docker-compose file to create a SQL Server Docker container: [DOCKER-COMPOSE.YML] Then, using a PowerShell console, we check everything works fine: FROM HOST TO THE CONTAINERFirst of all, we… Read More: Docker – How to copy a file from Host to… »

Docker – Commands

By | 08/06/2022

In this post, we will see some Docker commands that they can help us in our Docker projects. DOWNLOAD A DOCKER IMAGE docker pull ‘name of image’ LIST DOCKER IMAGES REMOVE DOCKER IMAGE docker rmi ‘image id’ REMOVE ALL DOCKER IMAGES RUN DOCKER CONTAINER docker run ‘name of image’ START AND STOP A DOCKER CONTAINER… Read More: Docker – Commands »

Docker – How to run SQL Server in a Docker container

By | 05/01/2022

In this post, we will see how to run SQL Server in a Docker container using a docker-compose file. We start opening VS Code and we create a file docker-compose.yaml where, we will add this code: [DOCKER-COMPOSE.YAML] I want to explain some rows:line 5 => we get latest version of mssqlline 7 => we define… Read More: Docker – How to run SQL Server in a Docker… »

Docker – Compose

By | 08/12/2021

In this post, we will see how to use docker compose in order to run a container with MongoDB and another one with mongo-express (a web-application used to manage a MongoDB instance).But first of all, what is docker compose?From Docker web site:“Compose is a tool for defining and running multi-container Docker applications. With Compose, you… Read More: Docker – Compose »