Video Lesson: Install Magento sample data in Docker

Install Magento sample data in Docker

Learn how to install sample data to populate a development site with realistic content for testing and experimentation.


Lesson Content

After installing docker-magento, the development site has a blank homepage with very little content. Sample data gives you real products, categories, and CMS content to work with while you experiment with the codebase.

From the project root, deploy the sample data modules:

bin/magento sampledata:deploy

This downloads the Composer dependencies required by Magento’s sample data modules and loads them into the project.

When that finishes, run the setup upgrade command:

bin/magento setup:upgrade

The setup scripts can take a little while to complete. Wait for the command to finish before continuing.

Finally, refresh the frontend of your development site. After a few moments, you’ll see the sample CMS content, categories, and products.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Log in for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!