[DOCKER] When [command not found: composer] is displayed when [composer install] is displayed in Laravel

Error handling method when composer install

【State】 Laravel is built with docker and the container is started with the following command

docker-compose up -d --build

~ Supplementary explanation ~

-d → Detached mode: Running the container in the background.

--build → It reloads the Dockerfile and reflects the updated information.

【problem】 Since the container has started up, when I access [http: // localhost /](http: // localhost /), the following error message is displayed! image.png

[Cause] composer couldn't be installed ...

【solution】

  1. Move to the directory containing Laravel

(Change the directory with cd and move to the folder containing app and bootstrap)

  1. Perform the installation
composer install

or

composer update

You can do it with.

[Impression] Recently, I feel that my ability to investigate is growing ...

There is no shame in not knowing; the shame lies in not finding out

It's not a shame not to know. It's a shame not to know

Tell me,

Recommended Posts

When [command not found: composer] is displayed when [composer install] is displayed in Laravel
When the project is not displayed in eclipse
[Ruby on rails] When executing the heroku command, bash: heroku: command not found is displayed. [Rails tutorial]
Image is not displayed in production environment
When UITextView is not displayed (Swift, Xcode)
What to do if Operation not permitted is displayed when you execute a command in the terminal
Remedy for command not found in rails s
When I run the source command in the Ubuntu Makefile, it says "source: command not found"
[Error] The app is not displayed in the production environment
No Xcode or CLT version detected! Is displayed when npm install is performed with Laravel
What to do when Method not found in f: ajax
When rewriting the CMD of docker image of Pod in the manifest of k8s, command is not good
Docker does not work when DOCKER_HOST is specified in WSL2
[Rails] fields_for is not displayed
Symbol not found error when new class in another Java file
Laravel, composer install causes an error in PackageManifest, so resolve it
Install lsb_release from the command line when lsb_release fails in docker environment
Install laravel/Dusk in docker environment (laravel6)
Disable display when not logged in
Error in ./gradlew: Symbol not found
Data is not registered in Rails.
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
[Cloud9] Yay! You ’re on Rails! Is not displayed in the rails tutorial
[Rails] Annotate is not executed when migrating
Do not return when memoizing in Ruby
Possibility when deploying to EC2 but nothing is displayed in the error log
When nginx conf is not reflected well in AWS Elastic Beanstalk + Rails environment
[Windows] gem install sqlite3 cannot be done ~ package configuration for sqlite3 is not found ~
How to set when "The constructor Empty () is not visible" occurs in junit
The list of installed apps is not displayed in getPackageManager (Android11 ​​/ API level 30)
Cause of is not visible when calling a method of another class in java