1. 容器管理:
      • 后台程序和前台交互程序
      • 器的定义
    2. 网络设置
    3. CPU和内存的runtime
    4. 权限和LXC配置
    1. --add-host=[] Add a custom host-to-IP mapping (host:ip)
    2. --blkio-weight=0 Block IO (relative weight), between 10 and 1000
    3. -c, --cpu-shares=0 CPU shares (relative weight)
    4. --cap-add=[] Add Linux capabilities
    5. --cap-drop=[] Drop Linux capabilities
    6. --cgroup-parent= Optional parent cgroup for the container
    7. --cidfile= Write the container ID to the file
    8. --cpu-period=0 Limit CPU CFS (Completely Fair Scheduler) period
    9. --cpu-quota=0 Limit the CPU CFS quota
    10. --cpuset-cpus= CPUs in which to allow execution (0-3, 0,1)
    11. --cpuset-mems= MEMs in which to allow execution (0-3, 0,1)
    12. -d, --detach=false Run container in background and print container ID
    13. --dns=[] Set custom DNS servers
    14. --dns-search=[] Set custom DNS search domains
    15. -e, --env=[] Set environment variables
    16. --env-file=[] Read in a file of environment variables
    17. --expose=[] Expose a port or a range of ports
    18. -h, --hostname= Container host name
    19. --help=false Print usage
    20. -i, --interactive=false Keep STDIN open even if not attached
    21. --init= Run container following specified init system container method (systemd)
    22. --ipc= IPC namespace to use
    23. -l, --label=[] Set meta data on a container
    24. --label-file=[] Read in a line delimited file of labels
    25. --link=[] Add link to another container
    26. --log-driver= Logging driver for container
    27. --log-opt=[] Log driver options
    28. --lxc-conf=[] Add custom lxc options
    29. -m, --memory= Memory limit
    30. --mac-address= Container MAC address (e.g. 92:d0:c6:0a:29:33)
    31. --net=bridge Set the Network mode for the container
    32. --oom-kill-disable=false Disable OOM Killer
    33. -P, --publish-all=false Publish all exposed ports to random ports
    34. -p, --publish=[] Publish a container's port(s) to the host
    35. --pid= PID namespace to use
    36. --privileged=false Give extended privileges to this container
    37. --read-only=false Mount the container's root filesystem as read only
    38. --restart=no Restart policy to apply when a container exits
    39. --rm=false Automatically remove the container when it exits
    40. --security-opt=[] Security Options
    41. --sig-proxy=true Proxy received signals to the process
    42. -t, --tty=false Allocate a pseudo-TTY
    43. -u, --user= Username or UID (format: <name|uid>[:<group|gid>])
    44. --ulimit=[] Ulimit options
    45. --uts= UTS namespace to use
    46. -v, --volume=[] Bind mount a volume
    47. -w, --workdir= Working directory inside the container