run.rst 636 B

12345678910111213141516171819
  1. ===========================================
  2. ``run`` -- Run a command in a new container
  3. ===========================================
  4. ::
  5. Usage: docker run [OPTIONS] IMAGE COMMAND [ARG...]
  6. Run a command in a new container
  7. -a=map[]: Attach to stdin, stdout or stderr.
  8. -d=false: Detached mode: leave the container running in the background
  9. -e=[]: Set environment variables
  10. -h="": Container host name
  11. -i=false: Keep stdin open even if not attached
  12. -m=0: Memory limit (in bytes)
  13. -p=[]: Map a network port to the container
  14. -t=false: Allocate a pseudo-tty
  15. -u="": Username or UID