How to create distroless container using buildah.sh

279 views
Skip to first unread message

Shruthi P

unread,
Nov 5, 2020, 2:30:13 AM11/5/20
to Distroless Users
Hi ,

Can u please guide how to create distroless container using buildah.sh

Chanseok Oh

unread,
Nov 5, 2020, 9:57:42 AM11/5/20
to Distroless Users
Hi,

(I'll assume that you want to build the exact same Distroless images already published at gcr.io/distroless/..., not that you want to build your own images that are using Distroless as a base image.)

Distroless images are being built in a declarative manner, and there is no Docker runtime involved or being used at image-building time. For example, if you are using `Dockerfile`, then it means you actually execute things on a Docker runtime while building an image. That is, it's like running a script in an imperative manner. Instead, Distroless images are directly assembled, much like just bundling existing files to create tar archives. So, yeah, it's not that you can use BuildAh or Docker to build Distroless images.

Andrew Latham

unread,
Nov 5, 2020, 10:44:10 AM11/5/20
to Distroless Users
Check for buildah to import tar files and you can build from a tar file base.

--
You received this message because you are subscribed to the Google Groups "Distroless Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distroless-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distroless-users/a676af0d-457f-4b96-ade8-8b5f1c15c1b3n%40googlegroups.com.


--
- Andrew "lathama" Latham -
Reply all
Reply to author
Forward
0 new messages