Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker pull来自私有托管的python注册表:基于3.6.8-slim的映像在推送后工作,但在修剪后返回未知blob_Docker_Python 3.6_Sonatype_Nexus3 - Fatal编程技术网

Docker pull来自私有托管的python注册表:基于3.6.8-slim的映像在推送后工作,但在修剪后返回未知blob

Docker pull来自私有托管的python注册表:基于3.6.8-slim的映像在推送后工作,但在修剪后返回未知blob,docker,python-3.6,sonatype,nexus3,Docker,Python 3.6,Sonatype,Nexus3,对于cron作业触发的脚本,我使用了python:3.6.8-slim作为脚本运行的基础映像 脚本每小时运行一次,并成功运行,直到docker系统prune作业运行 之后,脚本无法提取图像,并显示消息“错误:提取图像配置时出错:未知blob” 重新重建图像并将其推送到注册表时,docker pull命令在执行修剪作业之前不会出现任何问题 我使用sonatype nexus3作为我的私人docker注册表 我不明白为什么docker system prune作业会导致这种行为,因为registry

对于cron作业触发的脚本,我使用了
python:3.6.8-slim
作为脚本运行的基础映像

脚本每小时运行一次,并成功运行,直到
docker系统prune
作业运行

之后,脚本无法提取图像,并显示消息“错误:提取图像配置时出错:未知blob”

重新重建图像并将其推送到注册表时,
docker pull
命令在执行修剪作业之前不会出现任何问题

我使用sonatype nexus3作为我的私人docker注册表

我不明白为什么docker system prune作业会导致这种行为,因为registry nexus3在它自己的容器中运行

我的cron工作:

30      *       *       *       *       docker pull my.registry.com/path/name:tag && docker run --rm my.registry.com/path/name:tag
我的
dockerfile

FROM python:3.6.8-slim
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./ ./src/
CMD ["python", "src/myscript.py"]