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 »

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 – Swarm commands

By | 20/04/2022

In this post, we will see some Swarm commands that could help us in our docker projects.But first of all, what is Docker Swarm?Docker Swarm is an orchestration management tool that runs on Docker applications and it helps us in creating and deploying a cluster of Docker nodes.Swarm is directly integrated into the Docker CLI… Read More »

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 – Volumes

By | 24/11/2021

In this post we will see how to use a Volume in a Docker container.First of all, what is a Volume and when we need it?A Docker image is made of a set of read-only layers and when we start a new container, Docker takes the read-only image and adds a read-write layer on top.… Read More »

Docker – MongoDB

By | 10/11/2021

In these previous posts:MongoDB – How to install it on macOS MongoDB – How to install on Windowswe have seen how to install Mongo DB.In reality, with DOCKER, we can use MongoDB without install it on our system. IMPORTANT: For this post, I have used a Windows system but it is the same with Mac… Read More »