Command

Docker Save an Image to a File Command

The Docker command to save an image to a file is docker save -o FILE.tar IMAGE.

Quick Answer

Command
docker save -o FILE.tar IMAGE
DockerCommand

Save an Image to a File

Type this command
docker save -o FILE.tar IMAGE

Exports an image so you can move it without a registry.

Learn More

How to save an image to a file in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker save -o FILE.tar IMAGE, replace any placeholders, and run it.

Docker Save an Image to a File Command

Run docker save -o FILE.tar IMAGE.

Related Commands

Frequently asked questions

What is the Docker command to save an image to a file?

Run docker save -o FILE.tar IMAGE.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify