mirror of
https://github.com/moby/moby.git
synced 2026-08-05 07:30:57 +00:00
Formatting changes to make 1.12.x ref docs buildable in Jekyll
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
<!--[metadata]>
|
||||
+++
|
||||
title = "commit"
|
||||
description = "The commit command description and usage"
|
||||
keywords = ["commit, file, changes"]
|
||||
[menu.main]
|
||||
parent = "smn_cli"
|
||||
+++
|
||||
<![end-metadata]-->
|
||||
|
||||
# commit
|
||||
---
|
||||
redirect_from:
|
||||
- /reference/commandline/commit/
|
||||
description: The commit command description and usage
|
||||
keywords:
|
||||
- commit, file, changes
|
||||
title: docker commit
|
||||
---
|
||||
|
||||
```markdown
|
||||
Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
|
||||
@@ -55,6 +52,7 @@ created. Supported `Dockerfile` instructions:
|
||||
|
||||
## Commit a container with new configurations
|
||||
|
||||
{% raw %}
|
||||
$ docker ps
|
||||
ID IMAGE COMMAND CREATED STATUS PORTS
|
||||
c3f279d17e0a ubuntu:12.04 /bin/bash 7 days ago Up 25 hours
|
||||
@@ -65,8 +63,9 @@ created. Supported `Dockerfile` instructions:
|
||||
f5283438590d
|
||||
$ docker inspect -f "{{ .Config.Env }}" f5283438590d
|
||||
[HOME=/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DEBUG=true]
|
||||
{% endraw %}
|
||||
|
||||
## Commit a container with new `CMD` and `EXPOSE` instructions
|
||||
## Commit a container with new `CMD` and `EXPOSE` instructions
|
||||
|
||||
$ docker ps
|
||||
ID IMAGE COMMAND CREATED STATUS PORTS
|
||||
@@ -75,7 +74,7 @@ created. Supported `Dockerfile` instructions:
|
||||
|
||||
$ docker commit --change='CMD ["apachectl", "-DFOREGROUND"]' -c "EXPOSE 80" c3f279d17e0a svendowideit/testimage:version4
|
||||
f5283438590d
|
||||
|
||||
|
||||
$ docker run -d svendowideit/testimage:version4
|
||||
89373736e2e7f00bc149bd783073ac43d0507da250e999f3f1036e0db60817c0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user