`
cakin24
  • 浏览: 1368014 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

怎样使用Docker帮助

阅读更多
一 直接输入docker命令来查看Docker客户端的所有命令选项。
[root@localhost ~]# docker
Usage: docker [OPTIONS] COMMAND [arg...]
       docker [ --help | -v | --version ]
 
A self-sufficient runtime for containers.
 
Options:
 
  --config=~/.docker              Location of client config files
  -D, --debug                     Enable debug mode
  -H, --host=[]                   Daemon socket(s) to connect to
  -h, --help                      Print usage
  -l, --log-level=info            Set the logging level
  --tls                           Use TLS; implied by --tlsverify
  --tlscacert=~/.docker/ca.pem    Trust certs signed only by this CA
  --tlscert=~/.docker/cert.pem    Path to TLS certificate file
  --tlskey=~/.docker/key.pem      Path to TLS key file
  --tlsverify                     Use TLS and verify the remote
  -v, --version                   Print version information and quit
 
Commands:
    attach    Attach to a running container
    build     Build an image from a Dockerfile
    commit    Create a new image from a container's changes
    cp        Copy files/folders between a container and the local filesystem
    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    Export a container's filesystem as a tar archive
    history   Show the history of an image
    images    List images
    import    Import the contents from a tarball to create a filesystem image
    info      Display system-wide information
    inspect   Return low-level information on a container, image or task
    kill      Kill one or more running containers
    load      Load an image from a tar archive or STDIN
    login     Log in to a Docker registry.
    logout    Log out from a Docker registry.
    logs      Fetch the logs of a container
    network   Manage Docker networks
    node      Manage Docker Swarm nodes
    pause     Pause all processes within one or more containers
    port      List port mappings or a specific mapping for the container
    ps        List containers
    pull      Pull an image or a repository from a registry
    push      Push an image or a repository to a registry
    rename    Rename a container
    restart   Restart a container
    rm        Remove one or more containers
    rmi       Remove one or more images
    run       Run a command in a new container
    save      Save one or more images to a tar archive (streamed to STDOUT by default)
    search    Search the Docker Hub for images
    service   Manage Docker services
    start     Start one or more stopped containers
    stats     Display a live stream of container(s) resource usage statistics
    stop      Stop one or more running containers
    swarm     Manage Docker Swarm
    tag       Tag an image into a repository
    top       Display the running processes of a container
    unpause   Unpause all processes within one or more containers
    update    Update configuration of one or more containers
    version   Show the Docker version information
    volume    Manage Docker volumes
    wait      Block until a container stops, then print its exit code
 
Run 'docker COMMAND --help' for more information on a command.
 
二 通过命令docker command --help更深入的了解指定的Docker命令使用方法。
[root@localhost ~]# docker version --help
 
Usage:docker version [OPTIONS]
 
Show the Docker version information
 
Options:
  -f, --format string   Format the output using the given go template
      --help            Print usage
分享到:
评论

相关推荐

    docker使用手册

    ### Docker使用手册知识点详解 #### 一、Docker服务安装与配置 **1.1 Docker服务卸载** 在开始安装之前,确保系统中没有已...同时,本文还提供了一些实用的命令示例,帮助读者更好地理解和使用Docker及其集群功能。

    使用docker部署个人博客.pdf

    如果您想使用Docker来部署个人博客WordPress,这里有一些有用的资源可以帮助您入门: Docker入门教程:具有逐步指南的初学者友好的介绍性文档,对Docker中的概念、命令等进行了解释和演示,对于初学者来说非常有用...

    centos下使用docker部署.net core项目.docx

    Docker 是一个开源的容器化平台,能够帮助开发者快速构建、测试和部署应用程序。在 CentOS 系统中,需要CentOS 7 (64-bit) 或 CentOS 6.5 (64-bit) 或更高的版本,且系统内核版本需要高于 3.10。 在安装 Docker ...

    Docker 手册(Docker Handbook).pdf

    此外,还探讨了Docker 17.03-CE版本的插件开发,帮助用户了解如何在Docker平台上扩展功能。 文档还提到了业界的使用案例,例如京东从OpenStack切换到Kubernetes的经验分享,美团点评容器平台的介绍,阿里如何进行...

    Docker镜像制作流程,包括docker安装、使用、镜像的制作、及使用

    但是,通过本文的指导,可以帮助读者快速掌握 Docker 镜像制作流程的每一个步骤,并制作出自己的镜像。 十一、拓展阅读 在 Docker 镜像制作流程中,还有许多其他的命令和配置文件,例如,docker ps、docker rm、...

    【docker配置使用】docker配置使用教程

    Docker配置使用教程是一份全面且引人入胜的资源,旨在通过实战演练和详细的操作指导,帮助初学者和经验丰富的开发者有效掌握Docker的配置和使用技巧。 Docker作为一个轻量级的容器化平台,极大地简化了软件的部署、...

    使用Docker安装MySQL以及MybatisPlus的入门.docx

    使用Docker安装MySQL以及MybatisPlus的入门 本文将向您介绍使用Docker安装MySQL,以及MybatisPlus的入门搭建后台服务系统实现新增房源服务前后端进行整合,实现新增房源功能。 标题解释 使用Docker安装MySQL以及...

    docker&docker-compose 19.03.14二进制安装

    通过YAML文件(通常命名为`docker-compose.yml`)来配置服务、网络和卷,然后使用`docker-compose`命令来启动、停止和管理这些服务。这样可以简化多容器应用的部署和管理,尤其适用于微服务架构。 **Docker&Docker ...

    Windows版本docker安装包

    Docker在IT行业中是一款非常重要的容器化平台,它允许开发者将应用程序及其依赖打包到一个可移植的容器中,便于在各种环境中...无论选择哪种方式,Docker都能帮助开发者轻松地构建、分发和运行应用程序,提升开发效率。

    DOCKER最新版本资源安装包

    Docker是一个流行的容器化平台,用于快速...总之,最新版本的Docker提供了更多的功能和改进,可以帮助您更轻松地构建、打包、部署和运行应用程序。如果您正在寻找一种高效的容器化平台,Docker是一个值得考虑的选择。

    7、使用docker的mysql容器服务1

    本文档主要介绍了如何使用docker创建mysql容器服务,帮助开发者快速搭建开发环境。下面是本文档中所涉及的知识点: 一、docker容器服务 docker是一款轻量级的容器化工具,能够帮助开发者快速创建和管理容器服务。...

    当前真实可用的docker配置&使用

    该项目展示了如何使用 Docker 和 Docker Compose 来配置和运行一个简单的 Flask 应用程序。通过 Dockerfile 定义应用程序的容器环境,并使用 Docker Compose 来简化多容器应用的管理。希望这些内容对你有所帮助。

    银河麒麟v10 sp1 server安装docker手册

    银河麒麟v10 sp1 server安装docker手册 本手册主要介绍了在银河麒麟v10 sp1 server上安装docker的步骤...本手册提供了在银河麒麟v10 sp1 server上安装docker的详细步骤和注意事项,可以帮助用户快速安装和使用docker。

    docker20.10.7离线安装

    接着使用`systemctl start docker`来启动Docker服务,并使用`systemctl enable docker`来设置Docker服务开机自启。 8. **验证Docker状态和版本**:最后,我们可以通过命令`systemctl status docker`来检查Docker...

    elk的docker-compose配置

    在本文中,我们将深入探讨如何使用Docker Compose来设置一个完整的ELK环境。Docker Compose是一个工具,允许我们通过一个YAML文件定义和运行多容器的Docker应用。 首先,让我们了解ELK栈的每个组件: 1. **Elastic...

    离线安装docker19.03-ce

    ### 离线安装Docker 19.03-ce 的详细步骤与解析 #### 一、背景介绍 在很多情况下,特别是在企业级环境中或网络受限的场景下,需要进行离线安装Docker等软件...希望本文能帮助读者更好地理解和掌握Docker的安装方法。

    windows下安装docker

    ### Windows 下安装 Docker #### 一、安装 **1.1 下载** 为了在 Windows 平台上搭建 Docker 开发环境,首先需要下载 Docker Toolbox...如果遇到其他问题,还可以参考 Docker Toolbox 的官方文档或社区资源寻求帮助。

    使用Docker 配置 LNMP 环境,使用compose一键部署(持续更新)

    ### 使用Docker配置LNMP环境,使用Compose一键部署(持续更新) **资源简介:** 本文档全面介绍了如何使用 Docker 和 Docker Compose 一键部署 LNMP 环境(Linux、Nginx、MySQL、PHP),涵盖环境搭建、配置步骤、...

    Docker源码分析.rar

    国内首部Docker源码分析著作  从源码角度全面解析Docker设计与实现  填补Docker理论与实践之间的鸿沟... 无论是Docker的使用者还是开发者,通过阅读此书都可以对Docker有更深刻的理解,能够更好的使用或者开发Docker

Global site tag (gtag.js) - Google Analytics