From 7e7f4e90b0de9504094e68de6cd7e56dde4c7b95 Mon Sep 17 00:00:00 2001 From: accetto <34798830+accetto@users.noreply.github.com> Date: Sun, 16 Apr 2023 12:18:59 +0200 Subject: [PATCH] added HINTS comment to Dockerfile.extend example --- examples/Dockerfile.extend | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/Dockerfile.extend b/examples/Dockerfile.extend index 185238a..fe8d2c9 100644 --- a/examples/Dockerfile.extend +++ b/examples/Dockerfile.extend @@ -2,6 +2,17 @@ ### This is an example of extending the images. +### HINTS +### Sometimes you can get building errors related to cache handling. +### One of the following usually helps: +### (1) Use the '--no-cache' option +### > docker build ... --no-cache +### (2) Purge the builder cache before and/or between builds +### > docker builder prune +### (3) Re-open the terminal and/or Visual Studio Code +### (4) Remove the line containing 'rm -rf /var/lib/apt/lists/*' +### from your extending Dockerfile (like this one) + ### choose a base image and tag ARG BASEIMAGE="accetto/debian-vnc-xfce-g3" # ARG BASEIMAGE="accetto/debian-vnc-xfce-chromium-g3"