If you want to create a new image based on the changes that you have
made to a container, use the Save as Image command. This takes a
snapshot of your container, which appears as a new image in the image
catalog. In this way, you can create images with custom settings such as
environment variables.
To create an image from one of your containers:
Go to Docker > Details under the container name > Save as
Image, and optionally specify:
- Image name. By default, an ID will be generated and used as the name.
- Tag. You can specify the image version here. By default, the version
will be “latest”.
The created image appears in the image catalog and is marked Local
image.