我是Docker的初学者,正在使用Ubuntu 18.04作为主机。在搜索解决方案时,我得到的唯一结果是增加VM磁盘大小,因为它是由于内存不足而发生的。我没有使用VM。可用的磁盘大小为87+ GB。
下面是我的docker文件内容。
FROM ubuntu
RUN apt-get update
RUN apt-get install erlang
EXPOSE 15672在触发构建时,我收到以下错误:
Sending build context to Docker daemon 1.694GB
Step 1/4 : FROM ubuntu
---> cd6d8154f1e1
Step 2/4 : RUN apt-get update
---> Using cache
---> 04473efa791a
Step 3/4 : RUN apt-get install erlang
---> Running in bb7a0664bb20
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core ca-certificates ca-certificates-java dbus
dconf-gsettings-backend dconf-service default-jre-headless emacsen-common
erlang-asn1 erlang-base erlang-common-test erlang-corba erlang-crypto
.
.
.
notification-daemon openjdk-11-jre-headless openssl shared-mime-info
ubuntu-mono ucf x11-common xdg-user-dirs xkb-data
0 upgraded, 202 newly installed, 0 to remove and 1 not upgraded.
Need to get 137 MB of archives.
After this operation, 657 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c apt-get install erlang' returned a non-zero code: 1发布于 2018-09-20 23:50:41
apt-get要求您确认(是否要继续?Y/n中止。)显然码头是不愿意给的。所以改用apt-get -y install erlang吧。
https://stackoverflow.com/questions/52428700
复制相似问题