Día 7 de mi viaje DevOps: Docker Básico

Descubre Docker Básico para DevOps: imágenes, contenedores, volúmenes y puertos, comandos clave y casos de uso; laboratorio práctico y visión de IA y nube en Q2BSTUDIO.

8 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Día 7 de mi viaje DevOps: Docker Básico

Hoy continúo mi ruta de DevOps y Docker es la magia que permite empaquetar apps y sus dependencias en contenedores ligeros, facilitando entornos consistentes para equipos de desarrollo y operaciones. En Q2BSTUDIO, nuestra empresa de desarrollo de software a medida, integramos estas tecnologías para crear soluciones escalables y preparadas para producción, incluyendo aplicaciones a medida, servicios cloud AWS y Azure y ciberseguridad integrada.

Qué es Docker y por qué importa en DevOps. Docker proporciona una plataforma de contenerización que empaqueta apps y sus dependencias en contenedores ligeros. Los contenedores comparten el kernel del host pero permanecen aislados, lo que facilita entornos reproducibles desde desarrollo hasta producción.

Imágenes y Contenedores

Imagen = plano de construcción (p ej nginx:latest). Contenedor = instancia en ejecución de esa imagen.

Comandos básicos

Ejecutar un contenedor: docker run -it ubuntu bash

Listar contenedores: docker ps -a

Detener y eliminar contenedor: docker stop CONT_ID y docker rm CONT_ID

Descargar una imagen: docker pull nginx

Construir una imagen: docker build -t myapp .

Volúmenes y mapeo de puertos

Volumenes para datos persistentes: docker run -v /data:/var/lib/mysql mysql

Puertos para exponer servicios: docker run -p 8080:80 nginx

Casos de uso para DevOps

Ejecutar Jenkins, Nginx o Redis en contenedores.

Probar apps en entornos aislados.

Empaquetar pipelines CI/CD en imágenes reutilizables.

Consejo práctico

Si un contenedor falla, revisa logs docker logs CONT_ID

Inspecciona la configuración con docker inspect CONT_ID

Accede al contenedor con docker exec -it CONT_ID bash

Laboratorio práctico mini

Ejecutar un contenedor Nginx: docker run -d -p 8080:80 nginx

Verificar: Abre https://localhost:8080

Conclusión y takeaways

Docker es la columna vertebral de DevOps haciendo apps portátiles, livianas y listas para producción. Dominar Docker es el primer paso hacia Kubernetes y una arquitectura basada en contenedores. En Q2BSTUDIO trabajamos con IA para empresas y ofrecemos soluciones con agentes IA; nuestra visión de Inteligencia artificial para empresas se integra con contenedores para desplegar servicios de automatización y análisis; además, herramientas de inteligencia de negocio como Power BI cobran vida al ejecutarse en entornos aislados.

Día 8: Docker Networking y Volumes — conectando contenedores y persistencia de datos, y exploraremos su integración con nuestros servicios cloud AWS y Azure.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

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.

Live Chat