Save Docker image into a file

docker save es/elasticsearch:7.17.5 -o es.tar