Docker and laravel

hustavojhon

Gustavo Jhon

Posted on May 23, 2023

Docker and laravel

Getting Started On Windows

curl -s https://laravel.build/example-app | bash

cd example-app

./vendor/bin/sail up
Enter fullscreen mode Exit fullscreen mode


`

Getting Started On Linux

error docker runnig

sudo chmod 666 /var/run/docker.sock\n

bash
curl -s https://laravel.build/example-app | bash

Installing Sail Into Existing Applications

If you are interested in using Sail with an existing Laravel application, you may simply install Sail using the Composer package manager. Of course, these steps assume that your existing local development environment allows you to install Composer dependencies:

bash
composer require laravel/sail --dev

After Sail has been installed, you may run the sail:install Artisan command. This command will publish Sail's docker-compose.yml file to the root of your application:

bash
php artisan sail:install

Finally, you may start Sail. To continue learning how to use Sail, please continue reading the remainder of this documentation:

bash
./vendor/bin/sail up

💖 💪 🙅 🚩
hustavojhon
Gustavo Jhon

Posted on May 23, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related