zoukankan      html  css  js  c++  java
  • docker帮助命令

    docker常用命令

    一、帮助命令

    docker version #查看版本信息

    dicker info #docker描述信息

    docker --help #帮助命令

    Usage:  docker [OPTIONS] COMMAND

    A self-sufficient runtime for containers

    Options:
        --config string     Location of client config files (default "/root/.docker")
    -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker
                              context use")
    -D, --debug             Enable debug mode
    -H, --host list         Daemon socket(s) to connect to
    -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
        --tls               Use TLS; implied by --tlsverify
        --tlscacert string   Trust certs signed only by this CA (default "/root/.docker/ca.pem")
        --tlscert string     Path to TLS certificate file (default "/root/.docker/cert.pem")
        --tlskey string     Path to TLS key file (default "/root/.docker/key.pem")
        --tlsverify         Use TLS and verify the remote
    -v, --version           Print version information and quit

    Management Commands:
    builder     Manage builds
    config     Manage Docker configs
    container   Manage containers
    context     Manage contexts
    engine     Manage the docker engine
    image       Manage images
    network     Manage networks
    node       Manage Swarm nodes
    plugin     Manage plugins
    secret     Manage Docker secrets
    service     Manage services
    stack       Manage Docker stacks
    swarm       Manage Swarm
    system     Manage Docker
    trust       Manage trust on Docker images
    volume     Manage volumes

    Commands:
    attach     Attach local standard input, output, and error streams 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 to files or directories 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 Docker objects
    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
    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 one or more containers
    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
    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
    tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
    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
    wait       Block until one or more containers stop, then print their exit codes

    Run 'docker COMMAND --help' for more information on a command.

     

    翻译:

    选项:
    -- 客户端配置文件的配置字符串位置(默认为“/root/.docker”)
    -D, --启用调试模式
    -H, --要连接的主机列表守护进程套接字
    -l,     --设置日志级别的字符串
    (“调试”|“信息”|“警告”|“错误”|“致命”)(默认“信息”)
       --tls               使用tls;暗示了--tlsverify
       --tlscacert string   仅由此CA签名的信任证书(默认为“/root/.docker/ CA .pem”)
       --tlscert string     TLS证书文件的路径(默认为“/root/.docker/cert.pem”)
       --tlskey string     TLS密钥文件路径(默认为“/root/.docker/key.pem”)
       --tlsverify         使用TLS并验证远程
    -v, --version           打印版本信息并退出

     

    管理命令:
    builder     管理构建
    config     码头工人管理配置
    container   管理容器
    engine     管理docker引擎
    image       管理图像
    network     管理网络
     node       管理群节点
    plugin     管理插件
    secret     管理码头工人的秘密
     service     管理服务
    stack       管理码头工人栈
    swarm       管理群
    system     管理码头工人
    trust       管理Docker映像上的信任
    volume     管理卷
    操作命令:
    attach     将本地标准输入、输出和错误流附加到正在运行的容器中
    build       从Dockerfile构建一个映像
    commit     从容器的更改中创建一个新映像
     cp         在容器和本地文件系统之间复制文件/文件夹
    create     创建一个新容器
     diff       检查容器文件系统上文件或目录的更改
    events     从服务器获取实时事件
    exec       在正在运行的容器中运行命令
     export     将容器的文件系统导出为tar存档文件
    history     显示图像的历史
    images     图片列表
    import     从tarball导入内容以创建文件系统映像
    info       显示整个系统的信息
    inspect     返回Docker对象的底层信息
     kill       杀死一个或多个正在运行的容器
    load       从tar存档或STDIN加载图像
    login       登录到Docker注册表
    logout     从Docker注册表注销
    logs       获取容器的日志
    pause       暂停一个或多个容器中的所有进程
    port       列出容器的端口映射或特定映射
     ps         列表容器
    pull       从注册表中提取映像或存储库
    push       将映像或存储库推入注册表
    rename     重命名一个容器
     restart     重新启动一个或多个容器
     rm         移除一个或多个容器
    rmi         删除一个或多个图像
    run         在新容器中运行命令
    save       将一个或多个图像保存到tar存档文件(默认情况下流到STDOUT)
    search     在Docker集线器中搜索图像
     start       启动一个或多个停止的容器
    stats       显示容器资源使用统计数据的实时流
     stop       停止一个或多个正在运行的容器
    tag         创建一个引用SOURCE_IMAGE的标记TARGET_IMAGE
     top         显示容器的运行进程
    unpause     在一个或多个容器中暂停所有进程
    update     更新一个或多个容器的配置
    version     显示Docker版本信息
    wait       阻塞,直到一个或多个容器停止,然后打印它们的退出代码

     

  • 相关阅读:
    SAP MM VL32N和MIGO对内向交货单做收货,都会更新其'总体货物移动状态'
    Several mentality of SAP project customers in private enterprises
    GIT·AccessToken的基础使用
    MSSQL·按照某个字段重复删除旧的一条数据
    MSSQL·WHERE INT列=''时的结果集
    技能Get·手动更新HP笔记本BIOS过程记录
    GIT·.NetFramework MVC项目默认的.gitignore文件备份
    .Net·发布过程中报:在应用程序之外使用注册为allowDefinition='MachineTOApplication'的节是错误...
    知识总结·多系统数据同步API调用设计原则
    MSSQL·查看表锁进程及杀死进程的脚本
  • 原文地址:https://www.cnblogs.com/hsyw/p/13192424.html
Copyright © 2011-2022 走看看