I have cloned Magento 2 Image for Docker from here


but when I install It asks for so many permissions as from blow screen shots:

enter image description here


enter image description here

I have used certain commands from terminal like:

rm -rf var/cache var/generation var/di

when I use sudo with above commands it says:

root@a6e0cb9974fa:/var/www/html# sudo rm -rf var/generation
bash: sudo: command not found

What should be the way out ?

Any help should be highly appreciated!

1 Answer 1


Please providing below permission to your local setup folder.

sudo chmod -R 777 pub var app/etc generated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.