错误:未授权的nodejs:未授权访问所请求的资源

时间:2019-03-29 09:02:14

标签: docker sylius

我想在docker上使用sylius

我遵循了官方网站的相同步骤;

当我键入命令“ docker-compose pull --ignore-pull-failures || true”时,出现此错误:

Pulling mysql   ... done
Pulling php     ... error
Pulling nodejs  ... error
Pulling nginx   ... error
Pulling mailhog ... done

ERROR: for nginx  unauthorized: access to the requested resource is not authorized

ERROR: for nodejs  unauthorized: access to the requested resource is not authorized

ERROR: for php  unauthorized: access to the requested resource is not authorized
ERROR: unauthorized: access to the requested resource is not authorized
unauthorized: access to the requested resource is not authorized
unauthorized: access to the requested resource is not authorized

帮我高级副总裁

1 个答案:

答案 0 :(得分:2)

我通过从 dockercompose.yml 中删除缓存和图像使其工作:

  nginx:
    build:
      context: .
      target: sylius_nginx
      cache_from:
        - quay.io/sylius/php:latest
        - quay.io/sylius/nodejs:latest
        - quay.io/sylius/nginx:latest
    image: quay.io/sylius/nginx:latest
    depends_on:
      - php
      - nodejs # to ensure correct build order

删除 cache_from 和 image 如下:

  nginx:
    build:
      context: .
      target: sylius_nginx
    depends_on:
      - php
      - nodejs

对 php: 和 nodejs 执行相同的操作。