How do you run magento commands when using a docker container, like
php bin/magento setup:deploy
I have a docker container with php 7, mysql 5.6. The website works ok, but if I try to run some magento commands it tries to run them through the system php, which is 5.4.
It is more of a docker workflow question, as I'm unsure what to do next. I tried docker exec 281cbd203f92 magento setup:upgrade
but obviously it doesn't recognize the magento command. Should I add it to the path in the container?
My container:
281cbd203f92 cloudwaysdocker/docker_debian "/bin/bash /start.sh" 5 days ago Up 3 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp magento2