Apt-install processing continue in dockerfile

  docker

Report an error

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

Use assume-yes

apt-get install lsof --assume-yes

doc