Skip to content

FAQ

How do I control the file permissions generated by a Docker service?

In your docker-compose.override.yml file you can specify what user to run as:

# docker-compose.override.yml

services:
  artisan:
    user: 'www-data'

So when you run docker-compose run --rm artisan it now runs as the www-data user.

How do I reset my environment in order to start from scratch?

dev-cli s r a

This command will reset ALL databases, networks, volumes in Docker and recreates them in a default state.