Closed YvesZHI closed 11 months ago
cc @phlax
first point is that its using the host docker - so running inside the container etc is not relevant - it should be the same
wrt re-downloading the images they have different image ids - they havent been redownloaded they have been rebuilt
the images with <none>
are intermediate build layers that are kept around to speedup subsequent builds
im not seeing anything unexpected above - docker will use the internet (at least by default) to check base layers but there is nothing to suggest anythign be redownloaded in logs above
its quite possible that we could improve the layering in our build (i did some work on this already) to speed up rebuilds but i think that is a separate question
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
I'm trying to build an Envoy Docker image on my Ubuntu 18.04. I just followed the doc: https://www.envoyproxy.io/docs/envoy/latest/start/building/local_docker_build, which means that I executed the two commands as below:
It works as expected but I just found that if I re-execute the command
ENVOY_DOCKER_IN_DOCKER=1 sudo -E ./ci/run_envoy_docker.sh './ci/do_ci.sh docker'
, all of necessary docker images, which have been downloaded last time, will be downloaded again.I removed all of my local docker images and executed the command
ENVOY_DOCKER_IN_DOCKER=1 sudo -E ./ci/run_envoy_docker.sh './ci/do_ci.sh docker'
, I found that the docker images have been downloaded after the command finishes:However, if I now execute the command
ENVOY_DOCKER_IN_DOCKER=1 sudo -E ./ci/run_envoy_docker.sh './ci/do_ci.sh docker
again, the docker images will be downloaded again. Here is the output ofsudo docker images
:As you see, all of
<none>
images are duplicated now.Besides, while building the Envoy Docker image, I can see the log:
As you see, it seems that
load metadata for docker.io/library/ubuntu:20.04@sha256:.....
always appear no matter how many times that the commandENVOY_DOCKER_IN_DOCKER=1 sudo -E ./ci/run_envoy_docker.sh './ci/do_ci.sh docker
is executed. I don't know why can't the local image be used immediately...In a word, I have two questions:
ENVOY_DOCKER_IN_DOCKER=1 sudo -E ./ci/run_envoy_docker.sh './ci/do_ci.sh docker
) without Internet?