我在rasa聊天机器人的actions.py文件中有一些额外的依赖项。所以我使用这个链接构建了一个DockerFile,在Docker Compose中部署了一个Rasa开源助手。
所有的事情都像是创建一个镜像构建和推送。
然后我使用了Docker-Compose Quick Install链接。
但是当我尝试执行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>发布于 2020-04-15 04:19:00
您的action server镜像与您拉取的其余镜像不在同一存储库中,因此您需要为GCP存储库执行docker login。请在此处查看身份验证选项https://cloud.google.com/container-registry/docs/advanced-authentication
https://stackoverflow.com/questions/61010424
复制相似问题