To backup Docker images, we can either upload them onto a registry like Docker Hub or convert them into a tarball archive file. We can upload a Docker image to a registry using the Docker push command mentioned below:
$ docker push <image-name>
To save the Docker image into an archived tarball file, we can use this command:
$ docker save -o <name-of-tar-file> <name-of-container>