A container image is a ready-to-run software package, containing everything needed to run an application: the code and any runtime it requires, application and system libraries, and default values for any essential settings.
Stuff you wanna know:
- If you have a containerized application and want to make changes, you need to build a new image that includes the change, then recreate the container to start from the updated image.
- Container images are executable software bundles that can run standalone.
- A container image represents binary data that encapsulates an application and all its software dependencies.
- You typically create a container image of your application and push it to a registry before referring to it in a Pod.
- If you don’t specify a registry hostname, Kubernetes assumes that you mean the Docker public registry.
- Container images are usually given a name such as
pause
,example/mycontainer
, orkube-apiserver
. - Images can also include a registry hostname; for example:
fictional.registry.example/imagename
, and possibly a port number as well; for example:fictional.registry.example:10443/imagename
.
More stuff:
- Container images — https://kubernetes.io/docs/concepts/containers/#container-images
- Images — https://kubernetes.io/docs/concepts/containers/images/
- A practical introduction to container terminology — https://developers.redhat.com/blog/2018/02/22/container-terminology-practical-introduction#
- Listing all Container images in all namespaces — https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/#list-all-container-images-in-all-namespaces
- Listing Container images by Pod — https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/#list-all-container-images-in-all-namespaces
- Filtering container images by Pod label — https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/#list-container-images-filtering-by-pod-label
- Listing Container images using a go-template — https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/#list-container-images-filtering-by-pod-label
- Pulling Images from Container Registry during Kubernetes Deployment — https://docs.oracle.com/en-us/iaas/Content/Registry/Tasks/registrypullingimagesfromocir.htm
- Using Kaniko to build a container image in a Kubernetes cluster — https://www.ibm.com/cloud/blog/build-a-container-image-inside-a-kubernetes-cluster-and-push-it-to-ibm-cloud-container-registry