Skip to main content
Mark Llobrera

Top level navigation menu

Lando (Docker + Drupal/WordPress)

I’ve been using Kalabox quite heavily this past year, to the point where I haven’t even set up the default *AMP stack on my new(ish) MacBook Pro. The folks behind Kalabox, Tandem, clued me in to their latest iteration on that Docker-based VM setup, Lando. So far it’s all-CLI, no GUI. That’s not a dealbreaker for me—I pretty much use the CLI for all Kalabox operations except for the initial instantiation.

I took some time to install and run Lando through my typical usage, which is to spin up a local copy of a Pantheon site (Lando can do much more than that, but pretty much all my Drupal/WordPress dev is on Pantheon these days). After installing Lando, you can get your site running in four steps:

Downsides? If you run anything that uses localhost, Docker takes it over, so any built-in Apache/MySQL/PHP vhosts will be inaccessible until you quit Docker.

Debugging #

I’ve written about debugging in Kalabox, and setup in Lando is a bit more straightforward in you’re using VS Code:

"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"localSourceRoot": "/Users/markllobrera/Lando/landotest",
"serverSourceRoot": "/app/"
},