By sylvainFish
Hello
I was following the tutorial : https://www.digitalocean.com/community/tutorials/how-to-install-and-set-up-laravel-with-docker-compose-on-ubuntu-20-04-fr
But when i try “docker-compose exec app composer install”. I have error :
[RuntimeException]/var/www/vendor does not exist and could not be created.
I try with sudo but doesn’t work. Any issue ?
thanks a lot
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @sylvainFish,
I can confirm I just followed the tutorial and managed to run the command you mentioned without a problem. Unfortunately, I can’t seem an exact reason behind the experienced issue. What I’ll recommend is just trying to follow the tutorial step by step from the beginning.
Regards, KFSys
Your docker host needs to have the same user and id as you specify in docker-compose.yml (docker-compose.yml#L6. Once you fix that, remove all containers and recreate them. This will fix the errors.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.