Since you’re already using WP-CLI, I recommend you to use the wp core multisite-install
command to set up your network installation.
When you check out the documentation you’ll see that it’s pretty straightforward. Here’s the example from the docs:
$ wp core multisite-install --title="Welcome to the WordPress" \
> --admin_user="admin" --admin_password="password" \
> --admin_email="[email protected]"
Single site database tables already present.
Set up multisite database tables.
Added multisite constants to wp-config.php.
Success: Network installed. Don't forget to set up rewrite rules.
You can perfectly use this command to set everything up in your Docker environment.
Related Posts:
- Programmatically create blogs with dummy content on a WPMU site
- How to reset passwords for all users on a network using wp cli
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- wp-cli is not working properly. No response from commands
- Generate WP-CLI @alias for each site on multisite
- Using WP CLI to set options in WP Multisite
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- How to run nested xargs commands?
- WP-CLI can’t list posts
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- WP-CLI cron on multisite using WP-Toolkit “succeded”, but callback not executed
- Error: reassigning content to a different user is not supported on multisite
- Migrating Multisite with WP-Cli and/or Search-Replace-DB
- Create WordPress Multisite Instance Programmatically
- WP-Cli Error When Mapping Multisite Subdomain
- wp option get blogname –url=my-sub-site.com returning main site option
- WP-CLI Error Requesting CURL Extension
- wp cli search and replace on –network Error reconnecting to the database
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- Multisite on Windows with wildcard subdomains
- multisite 404 error for subdirectory
- How to hide or remove unwanted widgets on Multisite installation?
- How to use alias domain for multisite installation?
- Multisite htaccess on localhost with WP as an SVN external?
- WordPress Multisite with multiple domains using Nginx
- Redirect to a Plugin Settings Page After Multisite Site Creation?
- Can’t install local plugin (zip) with wp-cli [closed]
- WordPress Multisite – Multiple subfolders for blogs
- Uploading/Deploying a Multi Site Install
- How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?
- subdomain archiving
- Is it possible to fix/repair all Index, Primary Key, Unique (and all other) structure of a WordPress MS Database
- Trying to migrate a WordPress Multisite with Domain Mapping
- Manipulate list of themes in wp-admin
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- How to add edit users capability to a custom role?
- How to change the database prefix in multisite (WPMU) install
- Getting blank thumbnails in media library?
- Subfolder Multisite : optional www subdomain
- Efficiently manage a huge number of blogs given server-side restrictions
- WP MU – Accessing ‘Domain-Mapped’ WP-Admin with a subdomain
- Accessing multiple sites via FTP
- Multiple homes for multiple languages [closed]
- Icon font not working on subdomains of multisite
- Getting this code to work in Multisite
- Search post in all blogs in WPMU?
- Multi-site: removing /blog from posts
- Multiple install for multilanguage. How to?
- Migrating Multisite – Database error, missing wp_blogs table
- What is the function to get options of the parent site of a multisite network?
- Issue with htaccess redirection in WP Multisite
- Create batch of sites WordPress MultiSite
- Call to undefined function wp_get_sites()
- Pushing stored procedure to a multisite database in WordPress
- Child Theme activates, but nothing from parent theme displays (MAMP, Multisite)
- How do you disable account activation in WPMU and then log the user in right away?
- Error uploading files bigger than 58 MB
- In multisite environment which is the most Popular blog?
- Share reusable blocks between network sites
- WordPress rewrite multisite blog url
- How to transfer existing WordPress website to new multisite wordpress domain?
- Can Multisite run without domain name in WordPress?
- Copying media from multisite subsites to main website
- Link structure, WordPress IIS
- WordPress Multisite blogs not working after domain swap
- How to create multisite roles with predefined themes
- Can I safely remove banned names from WordPress?
- Multisite install w/ Sub domains on a subdomain
- Simplest way to query with blog_id?
- WordPress Multisite – Load users using custom query
- Is it possible to load wp-content/uploads from another server?
- Domain Mapping subsites of an Add-on Mulsite Domain
- Trying to change active theme on all sites in Multisite
- Multi-Site / Single Site Decisions
- Multi-site site nav, wpdb->prepare missing argument
- Publish all network posts to the primary site
- Multisite subdomain-site redirects to primary site
- query multisite blog for post by tag
- WordPress Multisite on multiple sub-domains
- How to migrate post media from stand-alone to multisite build
- Multisite network admin login redirect
- Seeking solution to sync wordpress sites with Server
- Multisite with Different URLs on Local Server
- How to add WordPress site to multisite network when both are addon domains
- Get posts by user role in a Multisite
- WPLANG option not available in localhost
- Applying Child Theme to another site, which has its own URL
- How can I make my existing VIP theme to multisite
- how to make a cronjob run, when user needs to be logged in
- After cloning my WordPress database to another server, I cannot log in
- All Subsites of a WordPress Multisite install 302 redirects to the main site
- How to find the site ID on a single site and then add new post with “`multipart/form-data” enctype?
- WordPress Domain Mapping shows new domain in place but takes me to the sub domain
- How can I have different langauges in wp-admin on a multisite installation?
- Problem in viewing recent posts from network site to main site
- Send data using GET method not work correctly
- How to create Network of websites with separate database in WordPress
- WordPress multidomains and subfolders
- Multisite: should /blog go to a 404 page?
- Create service similar to wordpress.com [closed]