Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 616 Bytes

docker-container-commit.md

File metadata and controls

19 lines (12 loc) · 616 Bytes

Commit container and create a new image

Creates a new image of the container with current changes of the container

docker commit {{CONTAINER_NAME}} {{IMAGE_NAME}}:{{TAG}}

  • CONTAINER_NAME: Name of the container to commit
  • CONTAINER_NAME: Name of the new image which will be created
  • TAG: Tag for the commit, which will be assigned to the new image

Example:

docker commit ak-cli ak-cli-new:version2.0

Related Commands