docker 命令介绍

attach    Attach to a running container  
             attach到一个运行中的容器

    build     Build an image from a Dockerfile
            从Dockefile中建立一个镜像

    commit    Create a new image from a container's changes
            从一个修改后的容器创建一个新的镜像

    cp        Copy files/folders from a container's filesystem to the host path
            从一个容器文件系统中拷贝文件/目录到主机

    create    Create a new container
            创建一下新容器

    diff      Inspect changes on a container's filesystem
            检查容器中文件的改变

    events    Get real time events from the server
             
    exec      Run a command in a running container
            在一个运行中的容器执行一个命令

    export    Stream the contents of a container as a tar archive
            归档容器内容

    history   Show the history of an image
            显示历史镜像信息

    images    List images
            镜像列表

    import    Create a new filesystem image from the contents of a tarball
            从压缩的文件中创建一个新文件系统镜像

    info      Display system-wide information
            显示系统信息

    inspect   Return low-level information on a container or image
            返回容器或镜像底层信息

    kill      Kill a running container
            kill 一个运行中的容器

    load      Load an image from a tar archive
            从归档的tar中加载一个镜像

    login     Register or log in to a Docker registry server
            登录到docker 注册服务器

    logout    Log out from a Docker registry server
            从docker注册服务器退出

    logs      Fetch the logs of a container
            获取容器操作日志

    pause     Pause all processes within a container
            暂停所有在容器中的进程

    port      Lookup the public-facing port that is NAT-ed to PRIVATE_PORT

    ps        List containers
            容器列表
    pull      Pull an image or a repository from a Docker registry server
            从Docker注册服务器下载镜像或资源库

    push      Push an image or a repository to a Docker registry server
           上传镜像或资源库到Docker注册服务器

    rename    Rename an existing container
           重命名一个存在的容器

    restart   Restart a running container
           重启一个运行的容器

    rm        Remove one or more containers
           删除一个或多个容器

    rmi       Remove one or more images
           删除一个或多个镜像

    run       Run a command in a new container
           在一个新的容器中运行一个命令

    save      Save an image to a tar archive
           保存一个镜像到一个归档文件

    search    Search for an image on the Docker Hub
           在Docker Hub上搜索一个镜像

    start     Start a stopped container
           启动一个已停止的容器

    stats     Display a stream of a containers' resource usage statistics
           显示容器使用资源的一系列的统计信息

    stop      Stop a running container
            终止运行中的容器

    tag       Tag an image into a repository

    top       Lookup the running processes of a container
            查看容器中运行的进程

    unpause   Unpause a paused container
             取消暂停的容器

    version   Show the Docker version information
    wait      Block until a container stops, then print its exit code

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28282660/viewspace-1793377/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28282660/viewspace-1793377/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值