DEV Community

Gustavo Jhon
Gustavo Jhon

Posted on • Edited on

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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay