Skip to content

Use ephemeral disks to store container images #1991

Answered by bcressey
arnaldo2792 asked this question in Q&A
Discussion options

You must be logged in to vote

The recommended approach is changing with Bottlerocket 1.9.0 because of the issue with CSI plugins reported in #2218 (thanks, @diranged) and the fix in #2240. The example from @arnaldo2792 above shows using a symlink, but for best results I'd recommend using a bind mount instead in newer versions.

The right approach depends on whether the bootstrap container needs to support older and newer versions of Bottlerocket. If older versions aren't a concern, the logic can be simplified by quite a bit.

Here's the Dockerfile for the container:

FROM amazonlinux:2
RUN yum -y install e2fsprogs bash mdadm util-linux
ADD setup-runtime-storage ./
RUN chmod +x ./setup-runtime-storage
ENTRYPOINT ["sh", "s…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bcressey
Comment options

Comment options

You must be logged in to vote
6 replies
@bcressey
Comment options

@yaroslav-nakonechnikov
Comment options

@hgambarian
Comment options

@runningman84
Comment options

@zepellin
Comment options

Answer selected by arnaldo2792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants