From aa0a7269450b87d7cf96462a5fb04ae6dab54956 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Sat, 25 Jun 2016 07:33:30 +0300 Subject: [PATCH] change enter container commands in the doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `docker-compose run …` to `docker exec -it …` --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cc55b3f..ca4b8bc 100644 --- a/README.md +++ b/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, ...). ```bash -docker-compose run workspace bash +docker exec -it {Workspace-Container-Name} bash ``` Replace `{Workspace-Container-Name}` with your Workspace container name.
@@ -323,7 +323,7 @@ docker-compose down 2 - enter any container using: ```bash -docker-compose run {container-name} bash +docker exec -it {container-name} bash ``` 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 ``` -2 - Enter the Workspace container: +2 - Find the Workspace container name: ```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 php artisan @@ -614,7 +620,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins 5 - Test it: - 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`.