-v, --volume list Bind mount a volume --volume-driver string Optional volume driver for the container --volumes-from list Mount volumes from the specified container(s)
You can detach from a container and leave it running using the CTRL-p CTRL-q key sequence.
Override the detach sequence
If you want, you can configure an override the Docker key sequence for detach. This is useful if the Docker default sequence conflicts with key sequence you use for other applications. There are two ways to define your own detach key sequence, as a per-container override or as a configuration property on your entire configuration.
To override the sequence for an individual container, use the--detach-keys="<sequence>"flag with thedocker attachcommand. The format of the<sequence>is either a letter [a-Z], or thectrl-combined with any of the following:
a-z(a single lowercase alpha character )
@(at sign)
[(left bracket)
\\(two backward slashes)
_(underscore)
^(caret)
Thesea,ctrl-a,X, orctrl-\\values are all examples of valid key sequences. To configure a different configuration default key sequence for all containers, seeConfiguration filesection.