tallamjr
tallamjr

Reputation: 1470

What's the difference between 'docker save' and 'docker image save'?

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

Answers (2)

7urkm3n
7urkm3n

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

Shashank V
Shashank V

Reputation: 11233

Both are same. Some frequently used commands have shorter aliases under docker subcommand.

Upvotes: 4

Related Questions