Debug/Troubleshooting Bootstrap containers #2168
-
I am trying to use a bootstrap container to setup an ephemeral disk to use for container images (as discussed here: #1991). Modified the setup script a little as the one shown in the discussion above is based on using an instance store:
But the above isn't working. Even the output statements to Is there a method for troubleshooting bootstrap containers. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You should be able to see the output of your bootstrap container in the journal. Also, instead of writing to |
Beta Was this translation helpful? Give feedback.
-
Thanks. That solved it. My issue was a combination of issues with not specifying the correct source URL (runtime doesn't assume default pulls are from docker.io) as well as cross platform issues (running M1 so had to ensure I built my bootstrap container for amd64). |
Beta Was this translation helpful? Give feedback.
-
when i am running mount command manually on the instance , disk is getting mounted on top of the directory but when i am passing it through a bootstrap container it is not getting mounted in bottlerocket |
Beta Was this translation helpful? Give feedback.
-
Hey @Riyan-plivo, are you having problems with mounting ephemeral storage to be used by the container runtime? Or with mounting any mount from a Bootstrap Container? For the former, have you considered using Bootstrap Commands? And for the latter, keep in mind that mounts created from bootstrap containers propagate to the host only they were created at |
Beta Was this translation helpful? Give feedback.
You should be able to see the output of your bootstrap container in the journal. Also, instead of writing to
/.bottlerocket/rootfs/tmp
try to write to/.bottlerocket/bootstrap-containers/current
sincetmp
might not be accessible by the SELinux label used in bootstrap containers.