docker [OPTIONS] COMMAND

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:

--config string      Location of client config files (default "/home/sinao/.docker")

-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 "/home/sinao/.docker/ca.pem")

--tlscert string     Path to TLS certificate file (default "/home/sinao/.docker/cert.pem")

--tlskey string      Path to TLS key file (default "/home/sinao/.docker/key.pem")

--tlsverify          Use TLS and verify the remote

-v, --version            Print version information and quit

Management Commands:

checkpoint  Manage checkpoints

--docker checkpoint is only supported on a Docker daemon running on linux, but the Docker daemon is running on

 config      Manage Docker configs

--Commands:

|--create      Create a config from a file or STDIN

|--inspect     Display detailed information on one or more configs

|--ls          List configs

|--rm          Remove one or more configs

container   Manage containers

--Commands:

|--attach      Attach local standard input, output, and error streams to a running container

|--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

|--exec        Run a command in a running container

|--export      Export a container‘s filesystem as a tar archive

|--inspect     Display detailed information on one or more containers

|--kill        Kill one or more running containers

|--logs        Fetch the logs of a container

|--ls          List containers

|--pause       Pause all processes within one or more containers

|--port        List port mappings or a specific mapping for the container

|--prune       Remove all stopped containers

|--rename      Rename a container

|--restart     Restart one or more containers

|--rm          Remove one or more containers

|--run         Run a command in a new container

|--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

|--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

|--wait        Block until one or more containers stop, then print their exit codes

image       Manage images

--Commands:

|--build       Build an image from a Dockerfile

|--history     Show the history of an image

|--import      Import the contents from a tarball to create a filesystem image

|--inspect     Display detailed information on one or more images

|--load        Load an image from a tar archive or STDIN

|--ls          List images

|--prune       Remove unused images

|--pull        Pull an image or a repository from a registry

|--push        Push an image or a repository to a registry

|--rm          Remove one or more images

|--save        Save one or more images to a tar archive (streamed to STDOUT by default)

|--tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

manifest    Manage Docker image manifests and manifest lists

--docker manifest is only supported on a Docker cli with experimental cli features enabled

network     Manage networks

--Commands:

|--connect     Connect a container to a network

|--create      Create a network

|--disconnect  Disconnect a container from a network

|--inspect     Display detailed information on one or more networks

|--ls          List networks

|--prune       Remove all unused networks

|--rm          Remove one or more networks

node        Manage Swarm nodes

--Commands:

|--demote      Demote one or more nodes from manager in the swarm

|--inspect     Display detailed information on one or more nodes

|--ls          List nodes in the swarm

|--promote     Promote one or more nodes to manager in the swarm

|--ps          List tasks running on one or more nodes, defaults to current node

|--rm          Remove one or more nodes from the swarm

|--update      Update a node

plugin      Manage plugins

--Commands:

|--create      Create a plugin from a rootfs and configuration. Plugin data directory must contain config.json and rootfs directory.

|--disable     Disable a plugin

|--enable      Enable a plugin

|--inspect     Display detailed information on one or more plugins

|--install     Install a plugin

|--ls          List plugins

|--push        Push a plugin to a registry

|--rm          Remove one or more plugins

|--set         Change settings for a plugin

|--upgrade     Upgrade an existing plugin

 secret      Manage Docker secrets

--Commands:

|--create      Create a secret from a file or STDIN as content

|--inspect     Display detailed information on one or more secrets

|--ls          List secrets

|--rm          Remove one or more secrets

service     Manage services

--Commands:

|--create      Create a new service

|--inspect     Display detailed information on one or more services

|--logs        Fetch the logs of a service or task

|--ls          List services

|--ps          List the tasks of one or more services

|--rm          Remove one or more services

|--rollback    Revert changes to a service‘s configuration

|--scale       Scale one or multiple replicated services

|--update      Update a service

 stack       Manage Docker stacks

--Options:

|--orchestrator string   Orchestrator to use (swarm|kubernetes|all)

--Commands:

|--deploy      Deploy a new stack or update an existing stack

|--ls          List stacks

|--ps          List the tasks in the stack

|--rm          Remove one or more stacks

|--services    List the services in the stack

swarm       Manage Swarm

--Commands:

|--ca          Display and rotate the root CA

|--init        Initialize a swarm

|--join        Join a swarm as a node and/or manager

|--join-token  Manage join tokens

|--leave       Leave the swarm

|--unlock      Unlock swarm

|--unlock-key  Manage the unlock key

|--update      Update the swarm

 system      Manage Docker

--Commands:

|--df          Show docker disk usage

|--events      Get real time events from the server

|--info        Display system-wide information

|--prune       Remove unused data

trust       Manage trust on Docker images

--Management Commands:

|--key         Manage keys for signing Docker images

|--signer      Manage entities who can sign Docker images

--Commands:

|--inspect     Return low-level information about keys and signatures

|--revoke      Remove trust for an image

|--sign        Sign an image

volume      Manage volumes

--Commands:

|--create      Create a volume

|--inspect     Display detailed information on one or more volumes

|--ls          List volumes

|--prune       Remove all unused local volumes

|--rm          Remove one or more 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

deploy      Deploy a new stack or update an existing stack

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.

原文地址:https://www.cnblogs.com/com3/p/10030278.html

时间: 2024-10-11 22:01:03

docker [OPTIONS] COMMAND的相关文章

k8s 传参给docker env command、args和dockerfile中的entrypoint、cmd之间的关系

[k8s]args指令案例-彻底理解docker entrypoint 需求: 搞个镜像,可以运行java -jar xxx.jar包,xxx.jar包名称要用参数传 思路1: 打对应运行jar包的jdk的image. 思路2: 打通用jdk 1, 运行指定jar的指定版的jdk k8s运行该image遇到的问题 kubectl create -f sms.yaml时报 rpc error: code = 2 desc = failed to start container "cffbbc3d2

docker inspect command

[[email protected] ~]# docker inspect --help Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...] Return low-level information on Docker objects Options: -f, --format string Format the output using the given Go template --help Print usage -s, --size

Docker源码解读:1.flag解读

我是怎么想到要先看docker中的flag呢,就是因为docker采用了c/s结构,而且daemon和client都是用同一个程序的,因此,为了做出区分,肯定是要用参数来区分的.先来看位于./docker/docker/docker.go下面的main函数代码: func main() { //第一次肯定是返回false的,因为没有任何initializer if reexec.Init() { return } // Set terminal emulation based on platfo

Docker折腾笔记

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖环境到一个可移植的容器中,然后发布到任何流行的 Linux 机器上. 一.安装 1.安装准备 up kernel to 3.8 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org or yum install epel-release rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.n

Docker经常使用命令

Usage: docker [OPTIONS] COMMAND [arg...] -H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use A self-sufficient runtime for linux containers. Commands: attach    Attach to a running container build    

docker命令详解

docker [OPTIONS] command Usage: docker [OPTIONS] COMMAND [arg...] docker daemon [ --help | ... ] docker [ -h | --help | -v | --version ] A self-sufficient runtime for containers. Options: --config=~/.docker             Location of client config files

docker讲解和命令汇总

docker 什么是docker? Docker是Docker.inc公司开源的一个基于LXC技术之上构建的Container容器引擎,源代码托管在GitHub上,基于Go语言并遵从Apache2.0协议开源(可以商业). Docker项目的目标是实现轻量级的操作系统虚拟化解决方案. Docker是通过内核虚拟化技术(namespaces及cgroups等)来提供容器的资源隔离与安全保障等.由于Docker通过操作系统层的虚拟化实现隔离,所以Docker容器在运行时,不需要类似虚拟机VM额外的操

【3】docker命令集

[email protected]:/home/xcc# docker --helpUsage: docker [OPTIONS] COMMAND [arg...]       docker [ --help | -v | --version ] A self-sufficient runtime for containers. Options: --config=~/.docker              Location of client config files  -D, --debu

Docker的常规应用手册

一 .什么是 Docker Docker 最初是 dotCloud 公司创始人 Solomon Hykes 在法国期间发起的一个公司内部项目,它是基于 dotCloud 公司多年云服务技术的一次革新,并于 2013 年 3月以 Apache 2.0 授权协议开源),主要项目代码在 GitHub 上进行维护.Docker 项目后来还加入了 Linux 基金会,并成立推动开放容器联盟.其主要特点有: 源码开源,免费 使用 Google公司推出的 Go 语言进行开发实现 基于 Linux 内核技术,对