dockerfile中apt-install处理continue

报错

Step 6 : RUN apt-get install lsof
 ---> Running in 3bffcff2a321
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libperl4-corelibs-perl
The following NEW packages will be installed:
  libperl4-corelibs-perl lsof
0 upgraded, 2 newly installed, 0 to remove and 57 not upgraded.
Need to get 360 kB of archives.
After this operation, 692 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
The command '/bin/sh -c apt-get install lsof' returned a non-zero code: 1

使用assume-yes

apt-get install lsof --assume-yes

doc

    原文作者:codecraft
    原文地址: https://segmentfault.com/a/1190000008122203
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞