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 CLI command that gives us access to Magento CLI and Composer CLI, but how can we access the containers? That is where the connect command comes in handy!
npm run exec -- <container name> # for NPMyarn run exec <container name> # for Yarn
Now we are inside of a chosen container. Here is a list of available container names: