The Docker Run command goes into a detailed

Source: Internet
Author: User
Tags docker run

123456789Ten One A - - the - - - + - + A at - - - - - in - to + - Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]    -a, --attach=[]            登录容器(以docker run -d启动的容器)    -c, --cpu-shares=0         设置容器CPU权重,在CPU共享场景使用    --cap-add=[]               添加权限,权限清单详见:http://linux.die.net/man/7/capabilities    --cap-drop=[]              删除权限,权限清单详见:http://linux.die.net/man/7/capabilities    --cidfile=""               运行容器后,在指定文件中写入容器PID值,一种典型的监控系统用法    --cpuset=""                设置容器可以使用哪些CPU,此参数可以用来容器独占CPU    -d, --detach=false         指定容器运行于前台还是后台     --device=[]                添加主机设备给容器,相当于设备直通    --dns=[]                   指定容器的dns服务器    --dns-search=[]            指定容器的dns搜索域名,写入到容器的/etc/resolv.conf文件    -e, --env=[]               指定环境变量,容器中可以使用该环境变量    --entrypoint=""            覆盖image的入口点    --env-file=[]              指定环境变量文件,文件格式为每行一个环境变量    --expose=[]                指定容器暴露的端口,即修改镜像的暴露端口    -h, --hostname=""          指定容器的主机名    -i, --interactive=false    打开STDIN,用于控制台交互    --link=[]                  指定容器间的关联,使用其他容器的IP、env等信息    --lxc-conf=[]              指定容器的配置文件,只有在指定--exec-driver=lxc时使用    -m, --memory=""            指定容器的内存上限    --name=""                  指定容器名字,后续可以通过名字进行容器管理,links特性需要使用名字    --net="bridge"             容器网络设置,待详述    -P, --publish-all=false    指定容器暴露的端口,待详述    -p, --publish=[]           指定容器暴露的端口,待详述    --privileged=false         指定容器是否为特权容器,特权容器拥有所有的capabilities    --restart=""               指定容器停止后的重启策略,待详述    --rm=false                 指定容器停止后自动删除容器(不支持以docker run -d启动的容器)    --sig-proxy=true           设置由代理接受并处理信号,但是SIGCHLD、SIGSTOP和SIGKILL不能被代理    -t, --tty=false            分配tty设备,该可以支持终端登录    -u, --user=""              指定容器的用户    -v, --volume=[]            给容器挂载存储卷,挂载到容器的某个目录    --volumes-from=[]          给容器挂载其他容器上的卷,挂载到容器的某个目录    -w, --workdir=""           指定容器的工作目录

The Docker Run command goes into a detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.