Export

is used to persist a container (not an image).container in A running instance of an image is called container.

docker export <CONTAINER ID> > /home/export.tar

for example docker export nginx >/azizkhani/nginx.tar

 

Save

is used to persist an image (not a container). So we need the image name which


docker save nginx > /azizkhani/nginx.tar