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
- WordPress.org environments: PluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. Directory, Theme Directory, Jobs, Browse Happy, Translate, Support Forums, Photo Directory, WordPress.org SSO, Handbook, and FreeScout
- WordCamp.org
- WordPress.org News
- WordPress.org Parent Theme
- WordPress.org Pattern Directory
- Learn WordPress
- Openverse
Other projects with their own Docker setup:
9 responses to “Setting Up Your Machine”
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…
What is the password for the admin user when logged into these dev environments? I cannot get in with admin/admin
admin/password It in the Read.me file for vvv
Can’t I just use my Desktop Server Pro?
As long as you have a local installation of WordPress running, yes you can.
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.
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.
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.
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