No, that's not correct. Laravel Sail includes Composer by default, so you can use Composer commands inside the Docker container without any additional setup.
Here's an example of how you can use Composer inside the Laravel Sail Docker container:
sail
command: ./vendor/bin/sail up
sail
like this: ./vendor/bin/sail composer update
This will execute the Composer update
command inside the Docker container, and update all your dependencies.
So, the short answer is "Yes, it is possible to use Composer with Docker container when using Laravel Sail".
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-06-21 11:00:00 +0000
Seen: 10 times
Last updated: Apr 02 '23
How can GPU memory be shared among various Docker containers?
How can I eliminate a network that has been deleted from a Docker container?
How can I upload a docker container on a Cent Os 7 Linux server?
How can I improve my use of the Flexbox horizontal property?
What are the steps for activating GitLab Container Registry and uploading docker image to it?
How can the issue "host not found in upstream" be resolved in Docker Networking with nginx?
How can I display a progress bar for GNU Parallel in a Docker container?
What is the process for preserving all Docker images and transferring them to a different device?