Modify laravel sail Ubuntu software source
Modification of documents
C: Users 2018977115 – PC your project name vendor lavaelsail runtimes 8.0
Next dockerfile
Add before run apt get update
RUN sed -i [email protected]/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i [email protected]/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
Then execute the following in Linux
After creating the project, you can navigate to the application directory and start laravel sail. Laravel sail provides a simple command line interface to interact with laravel’s default docker configuration
CD your project name
./vendor/bin/sail up
The first time you run the sailup command, the application container for sail is built on your computer. It may take a few minutes. Don’t worry, the subsequent attempt to start sail will be faster.
Once the docker container of the application is started, you can access the application in a web browser,
The website is:http://localhost/index.php。