Skip to content

Commit 6544b52

Browse files
author
Natalie Arellano
committed
Add app dev how-to for specifying export target along with diagram
showing how pack uses the daemon. Signed-off-by: Natalie Arellano <[email protected]>
1 parent 67d1294 commit 6544b52

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
+++
2+
title="Specify export target"
3+
weight=50
4+
+++
5+
6+
Tell `pack` where you want your application image to be saved.
7+
8+
<!--more-->
9+
10+
By default, when you `pack build` an application, the image will be saved to a daemon, such as Docker or [Podman][podman],
11+
and you can view the image using a command such as `docker image ls`.
12+
13+
However, you could also choose to "publish" the application to an OCI registry, such as Docker Hub or Google Artifact Registry,
14+
or even to a local registry, by providing the `pack build --publish` flag.
15+
16+
Or, you could save the image in OCI layout format on disk by providing the `--layout` flag.
17+
See [here][OCI layout] for more information about working with layout images.
18+
19+
## FAQ: What am I using the daemon for?
20+
21+
Buildpacks always need to run in a containerized environment.
22+
Therefore, even when you publish the application image to a registry,
23+
`pack` is still using a daemon under the hood to create the build container(s) where buildpacks run.
24+
25+
The relationship between the build container and the application container can be seen in the diagram below:
26+
27+
![build diagram](/images/build-container-app-container.svg)
28+
29+
[podman]: /docs/for-app-developers/how-to/special-cases/build-on-podman
30+
[OCI layout]: /docs/for-app-developers/how-to/special-cases/export-to-oci-layout
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)