August 2018
Intermediate to advanced
372 pages
9h 29m
English
A Dockerfile usually has more than one RUN command as part of it. These are intended to be executed as part of the system bash commands and are mainly used to install packages. For example, the following RUN command is used to install Java 8:
RUN \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ add-apt-repository -y ppa:webupd8team/java && \ apt-get update && \ apt-get install -y oracle-java8-installer && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/oracle-jdk8-installer
The preceding command was taken from the Dockerfile provided by an image called oracle-java8 (https://github.com/dockerfile/java/blob/master/oracle-java8/Dockerfile).
This command is easy ...
Read now
Unlock full access