Skip to content

Add basic documentation for minikube image command #10819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion site/content/en/docs/handbook/pushing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Pushing images"
weight: 5
description: >
comparing 6 ways to push your image into a minikube cluster.
comparing 8 ways to push your image into a minikube cluster.
aliases:
- /docs/tasks/building
- /docs/tasks/caching
Expand All @@ -21,6 +21,8 @@ Here is a comparison table to help you choose:
| [docker-env command](/docs/handbook/pushing/#1pushing-directly-to-the-in-cluster-docker-daemon-docker-env) | only docker | good |
| [podman-env command](/docs/handbook/pushing/#3-pushing-directly-to-in-cluster-crio-podman-env) | only cri-o | good |
| [buildctl command](/docs/handbook/pushing/#6-pushing-directly-to-in-cluster-containerd-buildkitd) | only containerd | good |
| [image load command](/docs/handbook/pushing/#7-loading-directly-to-in-cluster-container-runtime) | all | ok |
| [image build command](/docs/handbook/pushing/#8-building-images-to-in-cluster-container-runtime) | all | ok |
| [cache add command]({{< ref "/docs/commands/cache.md#minikube-cache-add" >}}) | all | ok |
| [registry addon](/docs/handbook/pushing/#4-pushing-to-an-in-cluster-using-registry-addon) | all | ok |
| [minikube ssh](/docs/handbook/pushing/#5-building-images-inside-of-minikube-using-ssh) | all | best |
Expand Down Expand Up @@ -300,3 +302,33 @@ buildctl --addr unix://buildkitd.sock build \
```

now you can 'build' against the storage inside minikube. which is instantly accessible to kubernetes cluster.

---

## 7. Loading directly to in-cluster container runtime

The minikube client will talk directly to the container runtime in the
cluster, and run the load commands there - against the same storage.

```shell
minikube image load my_image
```

For more information, see:

* [Reference: image load command]({{< ref "/docs/commands/image.md#minikube-image-load" >}})

---

## 8. Building images to in-cluster container runtime

The minikube client will talk directly to the container runtime in the
cluster, and run the build commands there - against the same storage.

```shell
minikube image build -t my_image .
```

For more information, see:

* [Reference: image build command]({{< ref "/docs/commands/image.md#minikube-image-build" >}})