From 957f26282507a6791664d6985c854ce99beda197 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Thu, 22 Dec 2016 00:16:26 +0000 Subject: [PATCH] Add apt update in Dockerfile, since cached lists file may be obsoleted --- dockers/docker-snmp/Dockerfile | 2 +- dockers/docker-vas/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dockers/docker-snmp/Dockerfile b/dockers/docker-snmp/Dockerfile index 29bad3d746b4..7ffc0b122870 100644 --- a/dockers/docker-snmp/Dockerfile +++ b/dockers/docker-snmp/Dockerfile @@ -17,7 +17,7 @@ RUN apt-get update && \ dpkg_apt /deps/libsnmp30_*.deb && \ dpkg_apt /deps/snmp_*.deb && \ dpkg_apt /deps/snmpd_*.deb && \ - rm -rf /deps + rm -rf /deps # install subagent RUN apt-get -y install build-essential wget libssl-dev openssl supervisor && \ diff --git a/dockers/docker-vas/Dockerfile b/dockers/docker-vas/Dockerfile index 1b51bb968cff..84b5eb46d40e 100755 --- a/dockers/docker-vas/Dockerfile +++ b/dockers/docker-vas/Dockerfile @@ -5,7 +5,8 @@ COPY user-override /etc/opt/quest/vas/user-override ## Pre-install the fundamental packages ## Clean up -RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \ +RUN apt-get update && \ + dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \ apt-get -y install \ sudo \ && \