weixin_39843093
2021-01-12 20:00 阅读 120

docker-compose up: No such file or directory

GUI error message

screenshot from 2019-01-17 20-39-50

Terminal error message

prestashop-git | cp: cannot stat '/tmp/data-ps/prestashop/': No such file or directory prestashop-git | \n Renaming install folder as install-dev ... prestashop-git | mv: cannot stat '/var/www/html/install': No such file or directory prestashop-git | \n* Renaming admin folder as admin-dev ... prestashop-git | mv: cannot stat '/var/www/html/admin': No such file or directory

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/PrestaShop/PrestaShop.git
  2. cd PrestaShop
  3. docker-compose up

docker -v Docker version 18.06.1-ce, build e68fc7a

docker-compose -v docker-compose version 1.23.2, build 1110ad01

该提问来源于开源项目:PrestaShop/PrestaShop

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39764603 weixin_39764603 2021-01-12 20:00

    Hi ,

    Thanks for your report. It is a permission issue. Could you please try to change file permissions of all directories to 777, check & feedback. Thanks!

    点赞 评论 复制链接分享
  • weixin_39888807 weixin_39888807 2021-01-12 20:00

    The best way to have write and read access is to use the same user the container image.

    
    $ chown -hR www-data:www-data ./PrestaShop
    

    And everything will work fine.

    点赞 评论 复制链接分享
  • weixin_39843093 weixin_39843093 2021-01-12 20:00

    Thank you , everything works fine

    This should be documented in README.md

    点赞 评论 复制链接分享
  • weixin_39888807 weixin_39888807 2021-01-12 20:00

    I do it in this PR (https://github.com/PrestaShop/PrestaShop/pull/12222) Thanks for the advice.

    点赞 评论 复制链接分享
  • weixin_39628247 weixin_39628247 2021-01-12 20:00

    I still have same problem.

    Reproduce 1. chown -hR www-data:www-data ./prestashop 2. git clone https://github.com/PrestaShop/PrestaShop.git 3. cd prestashop 4. docker-compose up

    docker Docker version 19.03.2, build 6a30dfc

    docker-compose docker-compose version 1.24.1, build 4667896b

    error message

    \n Reapplying PrestaShop files for enabled volumes ... cp: cannot stat '/tmp/data-ps/prestashop/': No such file or directory

    点赞 评论 复制链接分享
  • weixin_39687667 weixin_39687667 2021-01-12 20:00

    chown after clone

    1. git clone https://github.com/PrestaShop/PrestaShop.git
    2. cd prestashop
    3. chown -hR www-data:www-data .
    4. docker-compose up
    点赞 评论 复制链接分享

相关推荐