Docker构建失败并返回非零代码:100

时间:2019-07-05 08:48:31

标签: docker

我正在尝试在OS X上运行Docker

FROM ubuntu:16.04

ENV PYTHONUNBUFFERED 1
ENV LANG C.UTF-8

RUN mkdir /django

RUN apt-get update -y && \
    apt-get dist-upgrade -y && \
    apt-get install -y build-essential python3 python3-pip python3-dev python3-venv \
                       python3-psycopg2 postgresql nginx supervisor rabbitmq-server \
                       chromium-browser unzip curl ffmpeg gettext libpq-dev qt5-default\
                       libqt5core5a libqca-qt5-2 libqca2 \
                       chromium-browser unzip curl ffmpeg gettext expect aha && \
    apt-get -y autoremove



在运行构建时,它给了我这个错误,如下所示 这是我在控制台上收到的错误

Updating certificates in /etc/ssl/certs...
148 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.4) ...
Errors were encountered while processing:
 python-pkg-resources
 python-meld3
 supervisor
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'api' failed to build: The command '/bin/sh -c apt-get update -y &&     apt-get dist-upgrade -y &&     apt-get install -y build-essential python3 python3-pip python3-dev python3-venv                        python3-psycopg2 postgresql nginx supervisor rabbitmq-server                        chromium-browser unzip curl ffmpeg gettext libpq-dev qt5-default                       libqt5core5a libqca-qt5-2 libqca2                        chromium-browser unzip curl ffmpeg gettext expect aha &&     apt-get -y autoremove' returned a non-zero code: 100

我查看了各种资料,这些资料仅表明我在使用Docker时必须附加-y命令,但这已经存在。

0 个答案:

没有答案