-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/run-image-toml
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
content/docs/for-app-developers/how-to/build-inputs/specify-export-target.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
+++ | ||
title="Specify export target" | ||
weight=50 | ||
+++ | ||
|
||
Tell `pack` where you want your application image to be saved. | ||
|
||
<!--more--> | ||
|
||
By default, when you `pack build` an application, the image will be saved to a daemon, such as Docker or [Podman][podman], | ||
and you can view the image using a command such as `docker image ls`. | ||
|
||
However, you could also choose to "publish" the application to an OCI registry, such as Docker Hub or Google Artifact Registry, | ||
or even to a local registry, by providing the `pack build --publish` flag. | ||
|
||
Or, you could save the image in OCI layout format on disk by providing the `--layout` flag. | ||
See [here][OCI layout] for more information about working with layout images. | ||
|
||
## FAQ: What am I using the daemon for? | ||
|
||
Buildpacks always need to run in a containerized environment. | ||
Therefore, even when you publish the application image to a registry, | ||
`pack` is still using a daemon under the hood to create the build container(s) where buildpacks run. | ||
|
||
The relationship between the build container and the application container can be seen in the diagram below: | ||
|
||
![build diagram](/images/build-container-app-container.svg) | ||
|
||
[podman]: /docs/for-app-developers/how-to/special-cases/build-on-podman | ||
[OCI layout]: /docs/for-app-developers/how-to/special-cases/export-to-oci-layout |
1 change: 1 addition & 0 deletions
1
themes/buildpacks/static/images/build-container-app-container.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters