Skip to content

Instantly share code, notes, and snippets.

@sa2ajj
Created April 3, 2013 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sa2ajj/5299156 to your computer and use it in GitHub Desktop.
Save sa2ajj/5299156 to your computer and use it in GitHub Desktop.
$ docker help run
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
-volume=[]: Specify directories to use inside container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment