Docker development quick reference

docker-compose

Action Command
Build and start Docker environment docker-compose up -d
Build environment docker-compose run build cloud-build
Deploy environment docker-compose run deploy cloud-deploy
Connect to CLI container docker-compose run cli bash
Use ece-tools command docker-compose run cli ece-command <command>
Use Magento command docker-compose run cli magento <command>
Stop and remove Docker environment (removes volumes) docker-compose down -v
Stop Docker environment without destroying containers docker-compose stop
Resume Docker environment docker-compose start

ece-tools

The following example lists the ece-tools commands that relate to launching a Docker development environment:

php ./vendor/bin/ece-tools list | grep docker
 docker
  docker:build             Build docker configuration
  docker:config:convert    Convert raw config to .env files configuration