1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00
Files
cli/components/engine/docs/sources/commandline/command/commit.rst
rogaha 7040df6614 added/modifed tittle, description and keywords
changed the title prefix to sufix + Documentation
Upstream-commit: 18cb5c9314dbc9a0aa857211b124a3feb85c5274
Component: engine
2013-05-22 17:52:48 -07:00

1011 B

title
Commit Command
description
Create a new image from a container's changes
keywords
commit, docker, container, documentation

commit -- Create a new image from a container's changes

Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY [TAG]]

Create a new image from a container's changes

  -m="": Commit message
  -author="": Author (eg. "John Hannibal Smith <hannibal@a-team.com>"
  -run="": Config automatically applied when the image is run. "+`(ex: {"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}')

Full -run example:

{"Hostname": "",
 "User": "",
 "CpuShares": 0,
 "Memory": 0,
 "MemorySwap": 0,
 "PortSpecs": ["22", "80", "443"],
 "Tty": true,
 "OpenStdin": true,
 "StdinOnce": true,
 "Env": ["FOO=BAR", "FOO2=BAR2"],
 "Cmd": ["cat", "-e", "/etc/resolv.conf"],
 "Dns": ["8.8.8.8", "8.8.4.4"]}