Loading of docker image from tar file maybe required in environment where internet accessibility is restricted. In such scenarios download a docker image tar file from docker hub. Export the docker image to the system where you want to install the image.
Once you have the tar image available use the below commands to load the image to docker.
docker load --input docker-image.tar
After loading the image you will notice there is not tag assigned to the image. To assign a tag to the image you can use below command.
docker image tag <image-id> <tag-name>
Where image-id is the id of the image loaded you can get the id of and image by running docker image ls