463 lines
26 KiB
Markdown
463 lines
26 KiB
Markdown
---
|
|
title: "image"
|
|
description: >
|
|
Manage images
|
|
---
|
|
|
|
|
|
## minikube image
|
|
|
|
Manage images
|
|
|
|
### Synopsis
|
|
|
|
Manage images
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image build
|
|
|
|
Build a container image in minikube
|
|
|
|
### Synopsis
|
|
|
|
Build a container image, using the container runtime.
|
|
|
|
```shell
|
|
minikube image build PATH | URL | - [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
minikube image build .
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--all Build image on all nodes.
|
|
--build-env stringArray Environment variables to pass to the build. (format: key=value)
|
|
--build-opt stringArray Specify arbitrary flags to pass to the build. (format: key=value)
|
|
-f, --file string Path to the Dockerfile to use (optional)
|
|
-n, --node string The node to build on. Defaults to the primary control plane.
|
|
--push Push the new image (requires tag)
|
|
-t, --tag string Tag to apply to the new image (optional)
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image help
|
|
|
|
Help about any command
|
|
|
|
### Synopsis
|
|
|
|
Help provides help for any command in the application.
|
|
Simply type image help [path to command] for full details.
|
|
|
|
```shell
|
|
minikube image help [command] [flags]
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image load
|
|
|
|
Load an image into minikube
|
|
|
|
### Synopsis
|
|
|
|
Load an image into minikube
|
|
|
|
```shell
|
|
minikube image load IMAGE | ARCHIVE | - [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
minikube image load image
|
|
minikube image load image.tar
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--daemon Cache image from docker daemon
|
|
--overwrite Overwrite image even if same image:tag name exists (default true)
|
|
--pull Pull the remote image (no caching)
|
|
--remote Cache image from remote registry
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image ls
|
|
|
|
List images
|
|
|
|
### Synopsis
|
|
|
|
List images
|
|
|
|
```shell
|
|
minikube image ls [flags]
|
|
```
|
|
|
|
### Aliases
|
|
|
|
[list]
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
$ minikube image ls
|
|
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--format string Format output. One of: short|table|json|yaml (default "short")
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image pull
|
|
|
|
Pull images
|
|
|
|
### Synopsis
|
|
|
|
Pull images
|
|
|
|
```shell
|
|
minikube image pull [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
$ minikube image pull busybox
|
|
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image push
|
|
|
|
Push images
|
|
|
|
### Synopsis
|
|
|
|
Push images
|
|
|
|
```shell
|
|
minikube image push [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
$ minikube image push busybox
|
|
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image rm
|
|
|
|
Remove one or more images
|
|
|
|
### Synopsis
|
|
|
|
Remove one or more images
|
|
|
|
```shell
|
|
minikube image rm IMAGE [IMAGE...] [flags]
|
|
```
|
|
|
|
### Aliases
|
|
|
|
[remove unload]
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
$ minikube image rm image busybox
|
|
|
|
$ minikube image unload image busybox
|
|
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image save
|
|
|
|
Save a image from minikube
|
|
|
|
### Synopsis
|
|
|
|
Save a image from minikube
|
|
|
|
```shell
|
|
minikube image save IMAGE [ARCHIVE | -] [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
minikube image save image
|
|
minikube image save image image.tar
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--daemon Cache image to docker daemon
|
|
--remote Cache image to remote registry
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|
|
## minikube image tag
|
|
|
|
Tag images
|
|
|
|
### Synopsis
|
|
|
|
Tag images
|
|
|
|
```shell
|
|
minikube image tag [flags]
|
|
```
|
|
|
|
### Aliases
|
|
|
|
[list]
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
$ minikube image tag source target
|
|
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--add_dir_header If true, adds the file directory to the header of the log messages
|
|
--alsologtostderr log to standard error as well as files (no effect when -logtostderr=true)
|
|
-b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
|
|
-h, --help
|
|
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
|
--log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true)
|
|
--log_file string If non-empty, use this log file (no effect when -logtostderr=true)
|
|
--log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
|
|
--logtostderr log to standard error instead of files
|
|
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true)
|
|
-p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
|
|
--rootless Force to use rootless driver (docker and podman driver only)
|
|
--skip_headers If true, avoid header prefixes in the log messages
|
|
--skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true)
|
|
--stderrthreshold severity logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=false) (default 2)
|
|
--user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
|
|
-v, --v Level number for the log level verbosity
|
|
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
|
```
|
|
|