Day 2: Docker Fundamentals: installing and running your first container

Practical Docker guide: install on Windows, macOS, or Linux and launch your first container. Learn basic commands, best practices, and deployments with AWS, Azure, and Power BI, from Q2BSTUDIO.

domingo, 17 de agosto de 2025 • 4 min read • Q2BSTUDIO Team

Artificial-Intelligence-

Day 2: Docker basics and installing and running your first container

Welcome to the second day of our blog series on AWS ECS. Today we focus on Docker, the most widely used containerization tool, and we will take the first steps by installing it on your machine and running your first container. This article also introduces Q2BSTUDIO, a custom software and application development company, specializing in artificial intelligence, cybersecurity, and AWS and Azure cloud services, with experience in business intelligence services, AI agents, AI for businesses, and Power BI.

Why use Docker

Docker makes containers easy to use by allowing you to build, share, and run applications in isolated environments. Key benefits: process isolation to avoid interference with the host system, portability to apply the philosophy of build once, run anywhere, and efficiency because containers consume fewer resources than virtual machines. At Q2BSTUDIO we apply Docker to accelerate custom software deployments and artificial intelligence solutions that require reproducible environments.

Step 1: Installing Docker

Installation depends on the operating system. We recommend following the official documentation for the latest version.

On Windows

Download Docker Desktop from the official site. Run the installer and follow the instructions. If prompted, enable WSL 2. Open Docker Desktop to verify it is running. In professional environments, Q2BSTUDIO can help with initial setup and integration with AWS and Azure cloud services for continuous deployments.

On macOS

Download Docker Desktop for Mac, open the DMG file, drag it to Applications, and launch the app. Grant the necessary permissions. Q2BSTUDIO advises on security and cybersecurity policies for workstations that handle sensitive data.

On Linux, e.g., Ubuntu

Update packages with sudo apt-get update. Install prerequisites with sudo apt-get install ca-certificates curl. Create keyrings with sudo install -m 0755 -d /etc/apt/keyrings and add the GPG key following the official guide. Add the repository and update again with sudo apt-get update. Install Docker with sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin. Verify with sudo docker run hello-world. A quick alternative is to use the official script: curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh.

Step 2: Run your first container

Open a terminal and run docker run hello-world. This will download the hello-world image from Docker Hub and run it, showing a confirmation message if Docker is working correctly. If you want to test a web server, run docker run -d -p 8080:80 nginx and open https://localhost:8080 to see the default page. For an interactive shell, try docker run -it ubuntu bash.

Basic commands you should know

docker ps lists running containers.

docker images shows local images.

docker pull nginx downloads an image like nginx.

docker run -d -p 8080:80 nginx runs nginx in the background, mapping local port 8080 to the container's port 80.

Troubleshooting tips

If you get a permission denied error, add your user to the docker group with sudo usermod -aG docker $USER and log out and back in. If there are network issues, check your firewall or proxy configuration. For corporate environments, Q2BSTUDIO offers cybersecurity and network auditing services to ensure connectivity and compliance.

Best practices

Use official and minimal images to reduce the attack surface. Keep your images up to date and automate builds with pipelines integrated into AWS and Azure cloud services. Leverage business intelligence services and Power BI to monitor performance and cost metrics of your containers in production.

How this fits with Q2BSTUDIO

At Q2BSTUDIO we develop custom software solutions and custom applications that incorporate containers as part of the development and deployment lifecycle. We implement artificial intelligence and AI agents to automate tasks, offer business intelligence services to extract value from data, and apply cybersecurity measures to protect your applications. If your company needs AI for businesses, integration with AWS and Azure cloud services, or Power BI dashboards, we can design an architecture that uses Docker as the foundation for reproducible and scalable deployments.

Summary and next step

Today you installed Docker, ran your first container, and learned basic commands. Congratulations on completing this fundamental step. Tomorrow we will build and manage custom Docker images, creating the foundation for packaging custom applications, integrating artificial intelligence models, and deploying securely. Contact Q2BSTUDIO for advice on custom software projects, artificial intelligence, AI agents, cybersecurity, and AWS and Azure cloud services.

Integrated SEO keywords: custom applications, custom software, artificial intelligence, cybersecurity, AWS and Azure cloud services, business intelligence services, AI for businesses, AI agents, Power BI

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.