elastic-ci-stack-for-aws icon indicating copy to clipboard operation
elastic-ci-stack-for-aws copied to clipboard

AMI cached docker images are not present on instances with EnableDockerUserNamespaceRemap: true

Open keithduncan opened this issue 2 years ago • 2 comments

Ideally we can find a way to produce an AMI which when built upon to cache resources supports both EnableDockerUserNamespaceRemap: true and EnableDockerUserNamespaceRemap: false.

Presently the best workaround to support pre-cached images is to set EnableDockerUserNamespaceRemap: false in you stack’s parameters.

keithduncan avatar Oct 19 '21 03:10 keithduncan

Are there docs for AMI cached docker images?

We'd be interested in this (we're already running a fork of the stack) to improve build performance re: downloading the docker images for some slow moving service dependencies that we use via docker-compose.

woodhull avatar Oct 21 '21 21:10 woodhull

There aren’t docs at this time. We’ve had success using buildkite/image-builder or packer to build on top of our base images and run docker pull. The resulting image can then be passed to a stack using the ImageId or ImageIdParameter template parameters.

keithduncan avatar Oct 24 '21 23:10 keithduncan