Docker

What is it?

Docker is an open-source platform that enables containerization. Containers are lightweight, isolated environments where applications run consistently regardless of the underlying system. Docker packages an application with all its dependencies in a container, solving "works on my machine" issues.

Practical example

With a Dockerfile you can containerize your Laravel app: FROM php:8.4-fpm. Then you can use docker-compose to start your whole stack (PHP, MySQL, Nginx) with a single command.

Test your knowledge

What is the main advantage of Docker containers?

Ask Lex
Lex knows the context of this term and can give targeted explanations, examples, and extra context.
Tip: Lex replies briefly in the widget. For more detail, go to full screen mode.

Quick links