Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v1
v1
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Use custom domain
    • Access on the local network
    • Importing database
      • Importing remote database
    • Using Enterprise Edition
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Scripts Extensions
    • PHP Extensions
      • ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  1. Usage guide

Accessing Docker containers

PreviousUsing console commandsNextLinking a Scandi Theme

Last updated 2 years ago

Create Magento App consists of Magento, Docker containers with Redis, Elasticsearch, Nginx, and MySQL, and CLI to connect all of these things together. We already have a command that gives us access to and , but how can we access the containers? That is where the connect command comes in handy!

yarn run exec <container name> # for Yarn
npm run exec <container name> # for NPM

Now we are inside of a chosen container. Here is a list of available container names:

  • mysql

  • nginx

  • redis

  • elasticsearch

Common Usage

yarn run exec mysql

>root@c8f223c3ea92:/# # inside a mysql container

# ctrl + d or type 'exit' and press enter

# this is not alias, but rather service name matching
yarn run exec m

>root@c8f223c3ea92:/# # inside a mysql container
CLI
Magento CLI
Composer CLI