Email the Author
You can use this page to email Carles Mateo about Docker Combat Guide.
About the Book
First published : 2021-09-10
Current version: 2022-07-27 v.29
A 197 Full-size DIN-A4 size pages in PDF format, DRM-free, super effective for Developers in order to learn by examples how to use Docker (70% of the book) and Docker SDK for Python 3 (20%).
Docker allows you to run identical environment in Development that in Production.
Docker allows you to work with images that are equal in all you Servers, are immutable. If one works bad, you simply kill that Container and start another, new.
Docker is also very System Administrator, DevOps and SRE oriented, as it requires a lot of Linux understanding, so if you're a Software Developer you may not know how powerful it is.
This guide is created specifically for Software Developers in Python, PHP, Java, that want to discover the power of Docker Containers with easy examples. Although most of the examples use Python.
It covers creating Docker in workstations running:
- Ubuntu Linux
- Windows
- Mac OS X
This is not an extensive guide for System Administrators, DevOps and SREs.
This is a guide for Developers that want to start using Docker super quickly, by using examples from different projects. Also explains the usage of docker-compose and the Volumes and bind mounts for persistence.
The guide offers source code and the link to a repository, so you can just clone the code from there.
Updates
2022-07-29 v.27
- Automatically restart the Containers
- Added a Docker Container example with RabbitMQ and Python using it with package pika
2022-07-25 v.25
- Show how to install Jenkins with plugin Blue Ocean for Pipelines and persistent Volumes
- Show usage of USER command in Dockerfile
- Explaining WORKDIR
- Explaining ARG
- Explaining ENV
- Overriding ENV variables from Command Line
- Overriding or setting ENV variables from Command Line using a file and the argument
--env-file
2022-07-03 v.24
How to use different users in Dockerfile and in Interactive Sessions.
Showing how to run a jenkins containerized.
2022-06-21 v.23
Explained differences between docker export and save.
Fixed a typo referring to docker ls instead of docker ps.
Show how to use docker logs.
2022-04-25 v.22
Updated Dockerfile for packages being updated and asking for interactive input.
Display how to install ping and ssh client and interact to Windows and Mac hosts from inside the Docker Container by using host.docker.internal.
2022-02-15 v.20
Added some tricks, like clearing the logs, using some tools, and using Docker in Windows from command line without activating Docker Desktop.
2022-01-20 v.19
Full Source code of the SDK sample Python 3 demo application uploaded to Extras.
2021-11-24 v.18
Added the usage of a Software to reverse engineering an image and getting the original Dockerfile.
Added a typical copy and paste error to Troubleshoot section.
About the Author
I’m Carles Mateo, since January 2020 working as Operations Engineer for Blizzard Entertainment in Cork, Ireland.
Previously worked as Cloud Architect and SDM for Sanmina, in Ireland and United States, where I created and I did lead a Python and C project for a Storage Manager for our 4U Cold Storage Servers 1PB and 2U SSD and 1U NVMe with NICs up to 2x100Gbps, which will restore redundancy in the RAID when a drive dies, very quickly, using ZFS and DRAID.
I helped several multinationals:
- Volkswagen IT (gedas) where I got promoted to head of department of Reusability and Code Components and previously I lead the SEAT's Intranet project, I solved TCP/Ip transmission problems in project PortIc for Barcelona's port (EDI Transfer), I created a project to transfer warranty documents over Web and TCP/IP instead of X.25 expensive lines, and worked for CaixaBank (formerly "la caixa") creating a Documentum solution programing the GUI and DLL's.
- Winterthur Insurance (Axa) where I was Senior PM and I lead both technically and in functionally, the project to deploy a new Contact Center Software, the e-Commerce web platform and the insurance of health policies (special Data treatment)
- BBVA Tickets where I was responsible of the platform (Sun Solaris and Oracle)
I worked a lot for CSP (Cloud Service Providers) and ISP, in Linux.
Also I helped many Start ups, e-Commerces, Online travel agencies... as CTO or in hands on positions leading teams and coding myself, in Software Development, SRE and Operation roles.
I was one of the 5 Senior BackEnds that wrote Privalia's new multi-country Website, from the scratch, with inheritance, and I lead a KPI Dashboards for CEO, really learning the internals of all the areas of the company through the data.
The last company I was CTO for, in Barcelona, was sold to airbnb for 45 million euros.
My friends say that everything I touch turns into gold, and my very good friend Jaume (R.I.P.) used to say that I was the most brutal technical guy, solving all the difficult technical issues easily, that he ever met. I've very grateful thoughts and memories for all the people that did speak up how well they considered me, and that were fair Other people tried to take advantage by never telling me how good and helpful I was, so they could pay me less. What they didn't know is that I always had offers paying me double, and I was choosing to help them.
Now I only accept fair agreements. I know my value.
I started programming when I was 5 years old, at 10 I won a contest at Spanish State level, getting a Pc with a green phosphorescent monitor and a floppy drive, and I've lived the times of the BBS, much before Internet.
I've coded many Freeware Software, and Open Source Software, and I created the first system in Europe to sell Tickets for musical events, in 1995, for Tick Tack Ticket. I created this e-Commerce engine, with render template system completely in C, cgi-bin, HTML.
I love Software and Hardware.
I've worked with C, Java, PHP, Python... and my knowledge of PHP Unit Testing really reached its best when I was working for a bank.
I've invented the CSort algorithm.
In my free time I teach some students to get pro in coding. Most of my time now I work with Python 3, Docker Containers and Linux.
You can find information about me in my blog.