Skip toolbar

Setting Up Your Machine

In this article

Most WordPress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ and WordCamp.org projects have a local environment that runs in Docker, either through wp-env or Docker Compose. Install a Docker runtime, then follow the README of the environment for the site you want to work on.

A local environment covers almost everything, but not quite all of it. DeployingDeploy Launching code from a local development environment to the production web server, so that it’s available to visitors. changes to WordPress.org, and working on the handful of sites that have no local setup at all, both happen on a shared server instead — see WordPress.org Sandboxes.

Docker runtime

On macOS, use Colima. It’s free and open sourceOpen Source Open Source denotes software for which the original source code is made freely available and may be redistributed and modified. Open Source **must be** delivered via a licensing model, see GPL., needs no account, and runs without a GUI or tray app. wp-env, docker compose, and the build scripts work with it unchanged.

brew install colima docker docker-buildx docker-compose
colima start --cpu 4 --memory 4

Homebrew installs Buildx and Compose as Docker CLICLI Command Line Interface. Terminal (Bash) in Mac, Command Prompt in Windows, or WP-CLI for WordPress. plugins outside the CLI’s search path. On Apple Silicon, point the CLI at them by adding this property to ~/.docker/config.json, keeping whatever else is already in the file:

"cliPluginsExtraDirs": [ "/opt/homebrew/lib/docker/cli-plugins" ]

Colima remembers the CPU and memory settings, so later starts are just colima start. To start it at login instead, run brew services start colima.

On Windows, use Rancher Desktop with its dockerd (moby) engine, or Docker Desktop. On Linux, use Docker Engine.

If you run into problems, ask for help in the #meta channel on Slack.

Environments

Other projects with their own Docker setup:

9 responses to “Setting Up Your Machine”

  1. vloo Avatar

    Have you considered a similar tutorial for setting up an environment with Docker? I’m not planning to light up a rant, just sharing my hope for seing an alternative around, as Vagrant is pretty popular with it’s odd behaviour on some environments + being really slow, which is kind’a strange on a local machine…

  2. elstamey Avatar

    What is the password for the admin user when logged into these dev environments? I cannot get in with admin/admin

    1. Kenya Avatar

      admin/password It in the Read.me file for vvv

  3. dadman Avatar

    Can’t I just use my Desktop Server Pro?

    1. Jenny Avatar

      As long as you have a local installation of WordPress running, yes you can.

  4. Denis Stoyanov Avatar

    Just a note that can help somebody troubled. It’s something pretty straightforward but it can make you loose some time. If you decide to install it on Windows 7, you will need to run the CMD with admin privileges. Otherwise it will fail to write the hosts file and the install will always fail. You will still see the virtual machine but you won’t be able to run it.

  5. rillig Avatar

    On Windows 8.1, the combination of VirtualBox 4.3.10 and Vagrant 1.5.4 didn’t work. During setup, it failed with several obscure error messages.

    What worked instead was VirtualBox 5.0.0 and Vagrant 1.7.4.

  6. rosinaaa Avatar

    Hello, I would like to use VVV but I dont know how to install it. Does anyone has a video tutorial link? I have VirtualBox and Vagrant installed in my mac but I can’t understand what VVV is for and how to install it. Thanks in advance.

    1. Ian Dunn Avatar

      Hi @rosinaaa, VVV works in conjunction with VirtualBox and Vagrant, so you need all three. VVV has some detailed setup instructions on their repository homepage, but if you run into any problems, feel free to drop a question in the #metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. channel on Slack

s
search
c
compose new post
r
reply
e
edit
t
go to top
j
go to the next post or comment
k
go to the previous post or comment
o
toggle comment visibility
esc
cancel edit post or comment