我在rasa chatbot的actions.py文件中还有一些额外的依赖。因此,我使用此链接构建了一个DockerFile。在Docker Compose中部署Rasa开源助手。
一切都变得像创建图像并推送一样。
然后我使用了此链接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
我的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>
答案 0 :(得分:0)
您的动作服务器映像与要提取的其余映像不在同一个存储库中,因此您需要为GCP存储库执行docker login
。在https://cloud.google.com/container-registry/docs/advanced-authentication