Skip to content

How to create host directories? #1571

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

You must be logged in to vote

Other cloud-based Linux distributions provide mechanisms to create host directories in early stages of the init process (like cloud-init or ignition in CoreOS-like distributions), and Bottlerocket is not the exception. Users can create a one-off bootstrap container that sets up the host directory with the tools they are already familiar with. Here is an example of how to do so.

Given a bootstrap container called setup-host-directory with the following configuration:

[settings.bootstrap-containers.setup-host-directory]
source="<SOURCE>"
mode="once"
user-data="ypXjg47igKLhtKXigKLKlOODjiDvuLUg4pS74pSB4pS7Cg=="

Where <SOURCE>, is the URL of an image with the following definition:

FROM alpine
ADD

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
1 participant