怎样在windows docker 中安装fecmall

docker · bflzg · 于 3年前 发布 · 1289 次阅读

如题,既然可以通过docker安装,那么在windows的docker中也应该可以,希望得到官网的支持,如果您有过这方面的经验请不吝赐教,多谢多谢。 我自己改了yml文件中连接的外部目录地址(改成了windows主机相应的目录),但是在安装php的步骤中出错,大概是说无法更改目录,不知道该怎么办。 有这方面需要的伙伴也请把你遇到的情况发上来,大家一起讨论想想办法。

共收到 5 条回复
Fecmall#13年前 0 个赞

环境问题,自己搞定把,时间和精力有限。

官网只有一个window wamp的,您搞出来分享一下吧。

bflzg#23年前 0 个赞

不会,所以才来问,这个怎么搞,给个思路吧

bflzg#33年前 0 个赞

失败提示: Step 8/11 : RUN composer global require "fxp/composer-asset-plugin:^1.4.4" ---> Running in dbdXXX8d88f Changed current directory to /root/.config/composer

[RuntimeException] No composer.json present in the current directory, this may be the cause of the following exception.

[InvalidArgumentException] Package fxp/composer-asset-plugin at version ^1.4.4 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...

ERROR: Service 'php' failed to build : The command '/bin/sh -c composer global require "fxp/composer-asset-plugin:^1.4.4"' returned a non-zero code: 1 PS D:\docker\yii2_fecshop_docker>

bflzg#43年前 0 个赞

Step 8/11 : RUN composer global require "fxp/composer-asset-plugin:^1.4.4" ---> Running in 803537f98ffc Changed current directory to /root/.config/composer

[RuntimeException] No composer.json present in the current directory, this may be the cause of the following exception.

[InvalidArgumentException]
Package fxp/composer-asset-plugin at version ^1.4.4 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...

ERROR: Service 'php' failed to build : The command '/bin/sh -c composer global require "fxp/composer-asset-plugin:^1.4.4"' returned a non-zero code: 1

Fecmall#53年前 0 个赞

这里有一个linux docker的例子,您参考一下吧:

https://github.com/fecshop/yii2_fecshop_docker

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics