mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
19 lines
636 B
ReStructuredText
19 lines
636 B
ReStructuredText
===========================================
|
|
``run`` -- Run a command in a new container
|
|
===========================================
|
|
|
|
::
|
|
|
|
Usage: docker run [OPTIONS] IMAGE COMMAND [ARG...]
|
|
|
|
Run a command in a new container
|
|
|
|
-a=map[]: Attach to stdin, stdout or stderr.
|
|
-d=false: Detached mode: leave the container running in the background
|
|
-e=[]: Set environment variables
|
|
-h="": Container host name
|
|
-i=false: Keep stdin open even if not attached
|
|
-m=0: Memory limit (in bytes)
|
|
-p=[]: Map a network port to the container
|
|
-t=false: Allocate a pseudo-tty
|
|
-u="": Username or UID
|