

On new installations of the Docker engine on Linux, only the root user is able to manage containers. This error can appear if the Docker service is not enabled on your system, or if your current system user doesn't have permission to execute Docker. Here are a few tips for troubleshooting common problems that may happen while you run this tutorial. Runs a PHP script on the application container.įor more information on all available Sail commands, please visit the official documentation. Runs the artisan tool on the application container. Stops an environment that is currently running, saving the state of containers and services. Starts an environment that was previously stopped with sail stop. The next command will download the builder script from an official Laravel site and run it using bash.īrings the Docker environment down and remove associated containers, storage, and network. The demo application is a blog-like application that pulls content from a user's profile at DEV. Create a new Laravel application with the official builder script Make sure you add your user to the docker group so that you are able to execute Docker with your regular user.ġ. Linux users need only the Docker engine installed. Windows and MacOS users will need Docker Desktop installed. If you prefer, you can also watch the video version of this recap on youtube.īefore moving along, make sure you have the following software installed and configured on your local machine or development server: In this recap post, we'll share all steps that were executed during the live session, so that you're able to reproduce them at your own pace. This allows you to develop your Laravel application using Docker containers instead of having to set up a fully functional PHP development environment on a local machine or development server.

In the first episode of our livestreaming series Getting Started with Laravel on Sourcegraph's Twitch channel, we've seen how to bootstrap a new Laravel application with Sail and Docker.
