Under Dockerfile
AddRUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean
before RUN apt-get update and then in Linux After executing the
create project below, you can navigate to the application directory and start Laravel Sail. Laravel Sail provides a simple command line interface for interacting with Laravel's default Docker configuration:
cd 你的项目名字 ./vendor/bin/sail up
The first time you run the Sailup command, Sail's application container will be built on your computer. This may take several minutes. Don't worry, subsequent attempts to launch Sail will be faster.
Once the application's Docker container is started, you can access the application in a web browser at: http://localhost/index.php.