LaraDock 出现常见错误

###安装环境:mac、window

在官网下载了 docker for mac/window 安装成功后。 国外的Lardock : Laradock 由于GWF的原因所以我推荐,国内版 : Lardock 配置详情:https://laravel-china.org/topics/3374/the-laradock-version-of-the-v2-changed-a-little-into-the-domestic-mirror

配置验证 auth.json 出现下面的问题一样是没有配置auth.json
复制代码

Step 12 : COPY ./auth.json /home/laradock/.composer/auth.json ERROR: Service 'workspace' failed to build: lstat auth.json: no such file or directory

  cd workspace
  cp auth.json.example auth.json
复制代码

这时候去 GitHub 创建 ersonal access tokens 创建后,复制那串密钥

  vi auth.json
复制代码
{
    "bitbucket-oauth": {},
    "github-oauth": {
        "github.com": "刚刚配置的密钥key"
    },
    "gitlab-oauth": {},
    "http-basic": {}
}
复制代码
在 window 系统出现这个错误的时候
复制代码

the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

winpty 你要的命令
例如: winpty docker-compose exec --user=laradock workspace bash
复制代码

ERROR: for applications Cannot create container for service applications: C: drive is not shared. Please share it in Docker for Windows Settings Encountered errors while bringing up the project.

这个时候去 docker 右键 Settings 后选择第二个 Shared Drives 勾选你要的磁盘点击应用即可。
复制代码

转载于:https://juejin.im/post/5a333e636fb9a04511712c1e

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值