Command

Docker Save a Container as an Image Command

The Docker command to save a container as an image is docker commit CONTAINER IMAGE.

Quick Answer

Command
docker commit CONTAINER IMAGE
DockerCommand

Save a Container as an Image

Type this command
docker commit CONTAINER IMAGE

Turns the current state of a container into a new image.

Learn More

How to save a container as an image in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker commit CONTAINER IMAGE, replace any placeholders, and run it.

Docker Save a Container as an Image Command

Run docker commit CONTAINER IMAGE.

Related Commands

Frequently asked questions

What is the Docker command to save a container as an image?

Run docker commit CONTAINER 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