我尝试在 wsl 1 上运行,并禁用Use the WSL 2 based engine from Docker,并在 tcp://localhost:2375 上启用Expose daemon without TLS ,但是当我尝试运行时./vendor/bin/sail up不再工作“Docker is没有运行”,从我在Laravel 页面上检查的内容来看,我需要 WSL2。 docker-compose.yml(由 Laravel Sail 生成) ...
myhui0926 未填写
Laravel Sail is inspired by and derived fromVesselbyChris Fidao. If you're looking for a thorough introduction to Docker, check out Chris' course:Shipping Docker. Official Documentation Documentation for Sail can be found on theLaravel website. ...
到Docker 官网下载安装Docker Desktop,安装完成后,打开 Docker,开启 WSL2 : 与Ubuntu 进行整合: 如果没看到 Ubuntu 选项,查看博客文章《搭建 Laravel Sail 开发环境 - Windows,docker 选项设置 没有 ‘ubuntu’选项》来解决。 接下来配置 Docker Hub 镜像加速,按下图打开 Docker Desktop 配置界面: 将镜像加速的配置...
使用docker开发可以实现一个项目一个环境,这个我非常喜欢。 dockerrun--rm-v $(pwd):/opt -w /opt laravelsail/php80-composer:latest composer install -vvv && php artisan sail:install 这个命令使用一个包含PHP与Composer的小型 Docker容器进行应用程序依赖的安装 ...
docker OK,既然环境已经没有问题了,我们看下Laravel Sail是如何使用的。 首先安装 Laravel 项目 代码语言:javascript 复制 composer create-project laravel/laravel sail 看文档是直接可以使用命令./vendor/bin/sail up即可 安装完成 进到 sail 项目目录里
To stop all of the containers, you may simply press Control + C to stop the container's execution. Or, if the containers are running in the background, you may use thestopcommand: sailstop Executing Commands When using Laravel Sail, your application is executing within a Docker container an...
Laravel Sail is inspired by and derived from Vessel by Chris Fidao. If you're looking for a thorough introduction to Docker, check out Chris' course: Shipping Docker. Official Documentation Documentation for Sail can be found on the Laravel website. Contributing Thank you for considering contribu...
参考此文搭建 laravel 开发环境, 操作到 安装 Docker Desktop 时发现我的 docker 桌面端没有ubuntu选项 以下是作者的界面: 我的只是少了ubuntu这个选项。 在查看微软官方文档, 看到以下内容将分发版版本设置为 WSL 1 或 WSL 2, 下面是我操作的截图:
在./vendor/bin/sail文件中,有几个地方我将'laravel.test'替换为我在'docker-composer.yml'(myApp....