我想测试我的服务并为此在本地部署它,直到现在一切正常。但是,由于某些不相关的原因,我被迫删除了所有 docker 映像,从那时起我无法在本地部署该服务。部署后,我收到以下错误:
404 客户端错误:找不到 url:http+docker://localnpipe/v1.39/images/471b7320d98e95ad137228efff17267535936b632a749f817dbee3e9d03cd814/json
并且:
ImageNotFound: 404 Client Error: Not Found ("no such image: 471b7320d98e95ad137228efff17267535936b632a749f817dbee3e9d03cd814: No such image: sha256:471b7320d98e95ad137228efff17267535936b632a749f817dbee3e9d03cd814")
我为部署模型所做的工作:
from azureml.core.model import Model
from azureml.core import Workspace
from azureml.core.webservice import LocalWebservice
from azureml.core.model import InferenceConfig
ws = Workspace.from_config("config.json")
deployment_config = LocalWebservice.deploy_configuration(port=8890)
inference_config = InferenceConfig(runtime= "python",
entry_script="score.py",
conda_file="env.yml")
model_box = Model(ws, "box")
model_view = Model(ws, "view_crop")
model_damage = Model(ws, "damage_crop")
service = Model.deploy(ws, "test-service", [model_box, model_view, model_damage], inference_config, deployment_config)
service.wait_for_deployment(True)
我理解为什么没有图像存在,但我希望在这种情况下会下载它。
有没有办法强制构建过程重新下载 docker 基础镜像?
提前致谢。