Laradock 端口范围的长度不匹配错误
Laradock Port ranges don't match in length Errors
我开始使用 Docker 和 Laradock.When 我 运行 这个命令
docker-compose up -d apache2 mysql
我收到以下错误:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.proxy.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.proxy2.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.memcached.ports is invalid: Port ranges don't match in length
services.beanstalkd.ports is invalid: Port ranges don't match in length
services.mssql.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.netdata.ports is invalid: Port ranges don't match in length
services.beanstalkd-console.ports is invalid: Port ranges don't match in length
services.zookeeper.ports is invalid: Port ranges don't match in length
services.gitlab.ports is invalid: Port ranges don't match in length
services.workspace.ports is invalid: Port ranges don't match in length
services.maildev.ports is invalid: Port ranges don't match in length
services.mongo.ports is invalid: Port ranges don't match in length
我正在使用 Mac 并且已经重启 docker.What 我需要修复吗?
仅供使用 laradock 时遇到此错误的人参考,这是因为 .env 文件丢失,在您的 docker (laradock) 文件夹中创建一个包含此内容的 .env 文件:
https://raw.githubusercontent.com/laradock/laradock/master/env-example
我开始使用 Docker 和 Laradock.When 我 运行 这个命令
docker-compose up -d apache2 mysql
我收到以下错误:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.proxy.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.proxy2.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.memcached.ports is invalid: Port ranges don't match in length
services.beanstalkd.ports is invalid: Port ranges don't match in length
services.mssql.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.netdata.ports is invalid: Port ranges don't match in length
services.beanstalkd-console.ports is invalid: Port ranges don't match in length
services.zookeeper.ports is invalid: Port ranges don't match in length
services.gitlab.ports is invalid: Port ranges don't match in length
services.workspace.ports is invalid: Port ranges don't match in length
services.maildev.ports is invalid: Port ranges don't match in length
services.mongo.ports is invalid: Port ranges don't match in length
我正在使用 Mac 并且已经重启 docker.What 我需要修复吗?
仅供使用 laradock 时遇到此错误的人参考,这是因为 .env 文件丢失,在您的 docker (laradock) 文件夹中创建一个包含此内容的 .env 文件:
https://raw.githubusercontent.com/laradock/laradock/master/env-example