change enter container commands in the doc
`docker-compose run …` to `docker exec -it …`
This commit is contained in:
parent
e5e04e4e18
commit
aa0a726945
18
README.md
18
README.md
@ -221,7 +221,7 @@ You can select your own combination of container form this list:
|
|||||||
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...).
|
3 - Enter the Workspace container, to execute commands like (Artisan, Composer, PHPUnit, Gulp, ...).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose run workspace bash
|
docker exec -it {Workspace-Container-Name} bash
|
||||||
```
|
```
|
||||||
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
||||||
<br>
|
<br>
|
||||||
@ -323,7 +323,7 @@ docker-compose down
|
|||||||
2 - enter any container using:
|
2 - enter any container using:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose run {container-name} bash
|
docker exec -it {container-name} bash
|
||||||
```
|
```
|
||||||
3 - to exit a container, type `exit`.
|
3 - to exit a container, type `exit`.
|
||||||
|
|
||||||
@ -494,13 +494,19 @@ You can run artisan commands and many other Terminal commands from the Workspace
|
|||||||
docker-compose up -d workspace // ..and all your other containers
|
docker-compose up -d workspace // ..and all your other containers
|
||||||
```
|
```
|
||||||
|
|
||||||
2 - Enter the Workspace container:
|
2 - Find the Workspace container name:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose run workspace /bin/bash
|
docker-compose ps
|
||||||
```
|
```
|
||||||
|
|
||||||
3 - Run anything you want :)
|
3 - Enter the Workspace container:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker exec -it {workspace-container-name} bash
|
||||||
|
```
|
||||||
|
|
||||||
|
4 - Run anything you want :)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
php artisan
|
php artisan
|
||||||
@ -614,7 +620,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
|
|||||||
5 - Test it:
|
5 - Test it:
|
||||||
|
|
||||||
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
||||||
- Enter the Workspace Continer `docker-compose run workspace bash`.
|
- Enter the Workspace Container `docker exec -it laradock_workspace_1 bash`.
|
||||||
- Migrate the Database `php artisan migrate`.
|
- Migrate the Database `php artisan migrate`.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user