Docker Images
Image registry
On Docker Hub
- Official Images maintained by docker
- Verified Images maintained by third party providers
- User Images maintained by users
Image Tags
List Images on docker hosts
Search Images on Default registry
:::info By default, it displays 25 images :::
To specify limit of images to search
:::info --limit can be upto 100 (Max) :::
Search official images
Get images
or
Writing Image name
Image-name follows the pattern
Registry-URL/account-name/image-name
If registry URL is not supplied, then default URL is considered that is https://registry-1.docker.io
If account name is not specified, then image name is considered as account name
Example:
if image name provided as httpd then this will be considered as registry-1.docker.io/httpd/https
Public and Private registry
Public registry does not required credentials
Private registry required login
Login to private registry
Removing Images
Remove all unused images
Inspecting docker image
check layers of docker images
Save and load Images
Downloading docker images or saving docker images
Loading the image
Convert container to image
Using this converted image to run a container on any docker host
:::info - docker image load is different from docker image import
If we have used docker save to create image then docker image load will work as it requires docker metadata to be included in it and this is done by docker image save. - If we have any other image not created by docker save then docker image import needs to be used :::