【问题标题】:Rasa : Building a custom Action Server Image on GCPRasa:在 GCP 上构建自定义操作服务器映像
【发布时间】:2020-04-03 11:03:39
【问题描述】:

我的 rasa 聊天机器人的 actions.py 文件中有一些额外的依赖项。因此,我使用此链接在 Docker Compose 中部署 Rasa 开源助手来构建 DockerFile。

一切都像创建图像构建和推送一样进入文件。

然后我使用了这个链接 Docker-Compose 快速安装。

但是当我尝试执行 sudo docker-compose up -d 时,它会返回以下错误:

Pulling app (athenassaurav/rasa:12345)… ERROR: pull access denied for athenassaurav/rasa, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied

图片: Screenshot of Error

我的 Dockerfile 如下:

# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:1.9.0

# Use subdirectory as working directory
WORKDIR /app

# Copy any additional custom requirements
COPY actions/requirements-actions.txt ./

# Change back to root user to install dependencies
USER root

# Install extra requirements for actions code, if necessary (otherwise comment this out)
RUN pip install -r requirements-actions.txt

# Copy actions folder to working directory
COPY ./actions /app/actions

# By best practices, don't run the code with root user
USER 1001

我的 docker-compose.override.yml 看起来像这样:

version: '3.0'
services:
  app:
    image: <account_username>/<repository_name>:<custom_image_tag>

【问题讨论】:

  • 你的问题能说得更清楚些吗?您只是想解决一个错误吗?如果您使用 Google Cloud Registry 拉取镜像,则镜像名称需要根据附加文档 [1] cloud.google.com/container-registry/docspush-and-pulling#pulling_images_from_a_registry 进行具体说明

标签: docker ubuntu google-cloud-platform ubuntu-16.04 rasa


【解决方案1】:

您的操作服务器映像与您要提取的其他映像不在同一个存储库中,因此您需要为您的 GCP 存储库创建一个docker login。在此处查看身份验证选项https://cloud.google.com/container-registry/docs/advanced-authentication

【讨论】:

    猜你喜欢
    • 2021-09-22
    • 2021-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-30
    • 1970-01-01
    相关资源
    最近更新 更多