Skip to content

Run commands from inside a Docker container; don't worry about local artisan files #109

@ncphillips

Description

@ncphillips

We have a setup similar to Sail. We have a bin/artisan script that can run the artisan commands, or we can shell into the app container and run them there.

Every time I run a command it pops up asking which artisan to use

image

But I don't know why it's doing this. I just want it to run

docker compose exec laravel.test php artisan <cmd>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions