尝试运行时,我一直在与公司代理作斗争docker-compose up -d nginx mysql
我正在尝试在 OSX 上运行 Laradock 容器,但是当 composer 尝试安装依赖项时不断遇到错误。我已经更新了我的 docker 设置以通知它我的公司代理:
在添加代理信息之前,我收到了这个错误:
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
由于更新代理详细信息,我现在收到此错误:
Step 27/183 : RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then composer global install ;fi
---> Running in a7699d4ecebd
Changed current directory to /home/laradock/.composer
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL: Success
Failed to enable crypto
failed to open stream: operation failed
我是一位经验丰富的开发人员,但对 Docker 很陌生。我认为是因为 PHP 在 docker 容器内运行但由于某种原因无法访问我的本地证书而导致错误?