apt get install
DOK-DL3008apt-get install <package>
use apt-get install <package>=<version>
49ARG DOCKER_ARCH=x86_64
50ARG KUBECTL_ARCH=amd64
51
52RUN apt-get -qq update && apt-get -qq -y install curl default-mysql-client postgresql-client redis-tools telnet skopeo53
54SHELL ["/bin/bash", "-o", "pipefail", "-c"]
55
apt-get install <package>
use apt-get install <package>=<version>
6ARG KUBECTL_ARCH=amd64
7
8
9RUN apt-get update && apt-get -y install default-mysql-client postgresql-client redis-tools telnet10
11SHELL ["/bin/bash", "-o", "pipefail", "-c"]
12
Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes between versions of dependencies.
You can read more about version pinning here
FROM debian:buster
RUN apt-get install python
FROM debian:buster
RUN apt-get install python=2.7