• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
导航菜单
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx
您的位置:首页 > 服务器 >云计算 > Docker 使用方法总结之:容器的基本操作,docker基本操作

Docker 使用方法总结之:容器的基本操作,docker基本操作

作者:网友 字体:[增加 减小] 来源:互联网

本文主要包含docker容器技术,docker容器,docker 进入容器,docker 删除容器,docker 启动容器等服务器相关知识,网友希望可以进行参考

Docker 使用方法总结之:容器的基本操作,docker基本操作


  • 启动容器
core@localhost ~ $ 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)
  --cap-add=[]               Add Linux capabilities
  --cap-drop=[]              Drop Linux capabilities
  --cidfile=""               Write the container ID to the file
  --cpuset=""                CPUs in which to allow execution (0-3, 0,1)
  -d, --detach=false         Detached mode: run container in the background and print new container ID
  --device=[]                Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc)
  --dns=[]                   Set custom DNS servers
  --dns-search=[]            Set custom DNS search domains
  -e, --env=[]               Set environment variables
  --entrypoint=""            Overwrite the default ENTRYPOINT of the image
  --env-file=[]              Read in a line delimited file of environment variables
  --expose=[]                Expose a port from the container without publishing it to your host
  -h, --hostname=""          Container host name
  -i, --interactive=false    Keep STDIN open even if not attached
  --link=[]                  Add link to another container in the form of name:alias
  --lxc-conf=[]              (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
  -m, --memory=""            Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
  --name=""                  Assign a name to the container
  --net="bridge"             Set the Network mode for the container
                               'bridge': creates a new network stack for the container on the docker bridge
                               'none': no networking for this container
                               'container:<name|id>': reuses another container network stack
                               'host': use the host network stack inside the container.  Note: the host mode gives the container full access to local system services such as D-bus and is therefore considered insecure.
  -P, --publish-all=false    Publish all exposed ports to the host interfaces
  -p, --publish=[]           Publish a container's port to the host
                               format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort
                               (use 'docker port' to see the actual mapping)
  --privileged=false         Give extended privileges to this container
  --restart=""               Restart policy to apply when a container exit
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • Docker 使用方法总结之:容器的基本操作,docker基本操作

相关文章

  • Docker exec与Docker attach,dockerexecattach
  • 2015.6.5,2015.6.5世界环境日
  • Spark 基于item和user 的协同过滤实现,sparkitem
  • OpenStack Kilo新特性解读和分析(1),openstackkilo
  • 开源微内核seL4 microkernel,sel4microkernel
  • Mellanox网卡,使用netperf进行性能测试,mellanoxnetperf
  • Mahout-HashMap的进化版FastByIdMap,mahout
  • Hive Developing,hivedeveloping
  • pagerank算法的MapReduce实现,pagerankmapreduce
  • H3C config vlan access and trunk links,h3ctrunk

文章分类

  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx

最近更新的内容

    • 大数据流式处理一个不能忽视的问题,数据流不能忽视
    • hadoop基础知识
    • 云计算NA1
    • hadoop学习笔记(三)——WIN7+eclipse+hadoop2.5.2部署,hadoopwin7
    • Spark 基于item和user 的协同过滤实现,sparkitem
    • Spark MLlib Deep Learning Deep Belief Network (深度学习-深度信念网络)2.3,mllibbelief
    • NOSQL(六)集群并发计算模型Map-Reduce,nosqlmap-reduce
    • 机器学习-模型评估与选择
    • JOIN操作,数据库join操作
    • 你真的了解OpenStack吗?学过的人,都知道!,了解openstack

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有