docker run 的参数详情
$ sudo docker run
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG…]
Run a command in a new container
一、参数
-a, --attach=[] Attach to stdin, stdout or stderr.
-c, --cpu-shares=0 CPU shares (relative weight) ---------------------# 设置cpu使用权重
–cidfile="" Write the container ID to the file ------------------------ # 把容器id写入到指定文件
–cpuset="" CPUs in which to allow execution (0-3, 0,1) ----------------- # cpu绑定
-d, --detach=false Detached mode: Run container in the background, print new container id -----# 后台运行容器
–dns=[] Set custom dns servers ---------------- # 设置dns
–dns-search=[] Set custom dns search domains -------------- # 设置dns域搜索
-e, --env=[] Set environment variables ---------------- # 定义环境变量
–entrypoint="" Overwrite the default entrypoint of the image
–env-file=[] Read in a line delimited file of ENV variables ----- # 从指定文件读取变量值