Manage Images

<< Click to Display Table of Contents >>

Raynet One Technology Catalog > 14.0 > Installation Guide > Appendix A. Basic Docker Commands 

Manage Images

Download an image

docker pull Image[:TAG]

Example:

docker pull raynetgmbh/rayventory-catalog:stable

 

Upload an image to a repository

docker push Image[:TAG]

Example:

docker push raynetgmbh/rayventory-catalog:stable

 

Delete an image

docker rmi IMAGE[:TAG]

Example:

docker rmi oldcatalog

 

Show a list of all images

docker images

 

Delete dangling images

docker image prune

 

Build an image from a docker file

docker build DIRECTORY

Example:

docker build . 

 

Tag an image

docker tag IMAGE NEWIMAGE

Example:

docker tag ubuntu ubuntu:20.04

 

Build and tag an image from a docker file

docker build -t IMAGE DIRECTORY

Example:

docker build -t myimage . 

 

Save an image to a .tar file

docker save IMAGE > FILE

Example:

docker save raynetgmbh/rayventory-catalog:stable > raynetgmbh/rayventory-catalog:stable.tar

 

Load an image from a .tar file

docker load -i TARFILE

Example:

docker load -i raynetgmbh/rayventory-catalog:stable.tar