mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
Merge pull request #2638 from jwhonce/issue/1959
Corrected detach man pages and code comments
This commit is contained in:
@ -226,7 +226,7 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
|
||||
)
|
||||
createFlags.String(
|
||||
"detach-keys", "",
|
||||
"Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`",
|
||||
"Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`",
|
||||
)
|
||||
createFlags.StringSlice(
|
||||
"device", []string{},
|
||||
|
@ -11,13 +11,12 @@ The attach command allows you to attach to a running container using the contain
|
||||
or name, either to view its ongoing output or to control it interactively.
|
||||
|
||||
You can detach from the container (and leave it running) using a configurable key sequence. The default
|
||||
sequence is CTRL-p CTRL-q. You configure the key sequence using the --detach-keys option
|
||||
sequence is `ctrl-p,ctrl-q`. You configure the key sequence using the --detach-keys option
|
||||
|
||||
## OPTIONS
|
||||
**--detach-keys**
|
||||
**--detach-keys**=""
|
||||
|
||||
Override the key sequence for detaching a container. Format is a single character [a-Z] or
|
||||
ctrl-[value] where [value] is one of: a-z, @, ^, [, , or _.
|
||||
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`.
|
||||
|
||||
**--latest, -l**
|
||||
|
||||
|
@ -167,13 +167,13 @@ the other shell to view a list of the running containers. You can reattach to a
|
||||
detached container with **podman attach**.
|
||||
|
||||
When attached in the tty mode, you can detach from the container (and leave it
|
||||
running) using a configurable key sequence. The default sequence is `CTRL-p CTRL-q`.
|
||||
running) using a configurable key sequence. The default sequence is `ctrl-p,ctrl-q`.
|
||||
You configure the key sequence using the **--detach-keys** option or a configuration file.
|
||||
See **config-json(5)** for documentation on using a configuration file.
|
||||
|
||||
**--detach-keys**=""
|
||||
|
||||
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
|
||||
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`.
|
||||
|
||||
**--device**=[]
|
||||
|
||||
|
@ -173,7 +173,7 @@ the other shell to view a list of the running containers. You can reattach to a
|
||||
detached container with **podman attach**.
|
||||
|
||||
When attached in the tty mode, you can detach from the container (and leave it
|
||||
running) using a configurable key sequence. The default sequence is `CTRL-p CTRL-q`.
|
||||
running) using a configurable key sequence. The default sequence is `ctrl-p,ctrl-q`.
|
||||
You configure the key sequence using the **--detach-keys** option or a configuration file.
|
||||
See **config-json(5)** for documentation on using a configuration file.
|
||||
|
||||
|
@ -21,8 +21,7 @@ starting multiple containers.
|
||||
|
||||
**--detach-keys**
|
||||
|
||||
Override the key sequence for detaching a container. Format is a single character [a-Z] or
|
||||
ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.
|
||||
Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `\\`, `]`, `^` or `_`.
|
||||
|
||||
**--interactive, -i**
|
||||
|
||||
|
@ -93,7 +93,7 @@ var ErrDetach = errors.New("detached from container")
|
||||
// CopyDetachable is similar to io.Copy but support a detach key sequence to break out.
|
||||
func CopyDetachable(dst io.Writer, src io.Reader, keys []byte) (written int64, err error) {
|
||||
if len(keys) == 0 {
|
||||
// Default keys : ctrl-p ctrl-q
|
||||
// Default keys : ctrl-p,ctrl-q
|
||||
keys = []byte{16, 17}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user