Reputation: 1470
From the documentation:
docker save
Description: Save one or more images to a tar archive (streamed to STDOUT by default)
Usage docker save [OPTIONS] IMAGE [IMAGE...]
docker image save
Description: Save one or more images to a tar archive (streamed to STDOUT by default)
Usage docker image save [OPTIONS] IMAGE [IMAGE...]
Do they have the same behaviour or are there subtle differences depending on which one is used?
Upvotes: 4
Views: 3425
Reputation: 6321
It's like docker ps
and docker container ls
, the same command but shorter alias.
Docker helper:
docker --help | grep save
//and
docker image --help | grep save
//returns the same info.
-- Save one or more images to a tar archive (streamed to STDOUT by default)
Upvotes: 2
Reputation: 11233
Both are same. Some frequently used commands have shorter aliases under docker
subcommand.
Upvotes: 4