Revision #56 has been created by rackycz on Mar 8, 2021, 11:12:24 PM with the memo:
Docker
« previous (#55) next (#57) »
Changes
Title
unchanged
Yii v2 snippet guide III
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,yii2,beginer
Content
changed
[...]
Navigate in command line to the folder of your docker-project and run command:
- docker ps
- This will list all services you defined in docker-compose.yml
The last column of the list is NAMES. Pick one and copy its name. Then run command:
- docker exec -it {NAME} /bin/bash
- ... where {NAME} is your service name. For example:
- docker exec -it yii-advanced_backend_1 /bin/bash[...]