第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用composer安裝Docker php mongodb報錯

使用composer安裝Docker php mongodb報錯

PHP
慕姐8265434 2023-09-15 17:19:05
我在 Laravel 項目中使用 mongodb 和 php。當(dāng)我嘗試運行此命令時:docker-compose exec php composer install然后在控制臺中出現(xiàn)錯誤并顯示消息:Failed to download mongodb/mongodb from dist: The zip extension and unzip command are both missing, skipping. Your command-line PHP is using multiple ini files. Run `php --ini` to show them.Now trying to download from source- Installing mongodb/mongodb (1.6.1): Cloning 4bb040c620Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private reposHead to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+95edf1f219f1+2020-08-05+0622to retrieve a token. It will be stored in "/root/.composer/auth.json" for future use by Composer.Token (hidden):這是我的所有文件:文件:docker-compose.ymlversion: '3'services:  nginx:    image: nginx:stable-alpine    container_name: nginx    ports:      - "${HOST_PORT}:80"    volumes:      - ../:/var/www/html      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf    depends_on:      - php  php:    build:      context: .      dockerfile: ./Dockerfile    container_name: php    volumes:      - ./php/php.ini:/usr/local/etc/php/conf.d/php.ini      - ../:/var/www/html  mongodb:    image: mongo:latest    container_name: mongodb    ports:      - "${MONGODB_PORT}:27017"  redis:    image: redis:latest    container_name: redis    restart: always    ports:      - "${REDIS_PORT}:6379"  artisan:    build:      context: .      dockerfile: Dockerfile    container_name: artisan    volumes:      - ../:/var/www/html    working_dir: /var/www/html    entrypoint: ['/var/www/html/artisan']
查看完整描述

1 回答

?
繁星淼淼

TA貢獻(xiàn)1775條經(jīng)驗 獲得超11個贊

更改你的dockerfile


    FROM php:7.4-fpm

    

    ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

    

    RUN install-php-extensions \

    pdo_mysql \

    zip \

    mongodb

    

    RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer



查看完整回答
反對 回復(fù) 2023-09-15
  • 1 回答
  • 0 關(guān)注
  • 102 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號