Skip to content

Commit

Permalink
Add warning to switch docker context (#8901)
Browse files Browse the repository at this point in the history
* Add warning to switch docker context

* formatting

---------

Co-authored-by: Bas van der Hoeven <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
3 people authored Jul 8, 2023
1 parent ebefbe9 commit 34d8cf8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@ Once these tools are installed, you may open any Laravel project by executing th
<a name="getting-started-on-linux"></a>
### Getting Started On Linux

If you're developing on Linux and [Docker Compose](https://docs.docker.com/compose/install/) is already installed, you can use a simple terminal command to create a new Laravel project. For example, to create a new Laravel application in a directory named "example-app", you may run the following command in your terminal:
If you're developing on Linux and [Docker Compose](https://docs.docker.com/compose/install/) is already installed, you can use a simple terminal command to create a new Laravel project.

First, if you are using Docker Desktop for Linux, you should execute the following command. If you are not using Docker Desktop for Linux, you may skip this step:

```shell
docker context use default
```

Then, to create a new Laravel application in a directory named "example-app", you may run the following command in your terminal:

```shell
curl -s https://laravel.build/example-app | bash
Expand Down
3 changes: 3 additions & 0 deletions sail.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ Finally, you may start Sail. To continue learning how to use Sail, please contin
./vendor/bin/sail up
```

> **Warning**
> If you are using Docker Desktop for Linux, you should use the `default` Docker context by executing the following command: `docker context use default`.
<a name="adding-additional-services"></a>
#### Adding Additional Services

Expand Down

0 comments on commit 34d8cf8

Please sign in to comment.