🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ 用法:docker images [OPTIONS] [REPOSITORY] 用途:列出镜像 -a, --all=false Show all images (default hides intermediate images) --digests=false Show digests -f, --filter=[] Filter output based on conditions provided --help=false Print usage --no-trunc=false Don't truncate output -q, --quie=false Only show numeric IDs ~~~ ~~~ 用法:docker rmi [OPTIONS] IMAGE [IMAGE...] 用途:删除一个或多个镜像 -f, --force=false Force removal of the image --help=false Print usage --no-prune=false Do not delete untagged parents ~~~ ~~~ 用法:docker build [OPTIONS] PATH | URL | - 用途:创建一个基于用户自定义的Dockerfile生成的新镜像 -c, --cpu-shares=0 CPU shares (relative weight) --cgroup-parent= Optional parent cgroup for the container --cpu-period=0 Limit the CPU CFS (Completely Fair Scheduler) period --cpu-quota=0 Limit the CPU CFS (Completely Fair Scheduler) quota --cpuset-cpus= CPUs in which to allow execution (0-3, 0,1) --cpuset-mems= MEMs in which to allow execution (0-3, 0,1) -f, --file= Name of the Dockerfile (Default is 'PATH/Dockerfile') --force-rm=false Always remove intermediate containers --help=false Print usage -m, --memory= Memory limit --memory-swap= Total memory (memory + swap), '-1' to disable swap --no-cache=false Do not use cache when building the image --pull=false Always attempt to pull a newer version of the image -q, --quiet=false Suppress the verbose output generated by the containers --rm=true Remove intermediate containers after a successful build -t, --tag= Repository name (and optionally a tag) for the image ~~~ ~~~ 用法:docker pull [OPTIONS] NAME[:TAG|@DIGEST] 用途:从仓库下载一个镜像 -a, --all-tags=false Download all tagged images in the repository --help=false Print usage ~~~ ~~~ 用法:docker push [OPTIONS] NAME[:TAG] 用途:向仓库上传一个镜像 --help=false Print usage ~~~ ~~~ 用法:docker save [OPTIONS] IMAGE [IMAGE...] 用途:将镜像打包成tar文件 --help=false Print usage -o, --output= Write to an file, instead of STDOUT ~~~ ~~~ 用法:docker load [OPTIONS] 用途:将镜像tar文件释放成镜像 --help=false Print usage -i, --input= Read from a tar archive file, instead of STDIN ~~~ ~~~ 用法:docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG] 用途:在仓库中给镜像打个标签 -f, --force=false Force --help=false Print usage ~~~ ~~~ 用法:docker search [OPTIONS] TERM 用途:在Docker Hub中搜索镜像 --automated=false Only show automated builds --help=false Print usage --no-trunc=false Don't truncate output -s, --stars=0 Only displays with at least x stars ~~~ ~~~ 用法:docker history [OPTIONS] IMAGE 用途:显示镜像的历史记录 -H, --human=true Print sizes and dates in human readable format --help=false Print usage --no-trunc=false Don't truncate output -q, --quiet=false Only show numeric IDs ~~~ ~~~ 用途:docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] 用法:基于容器的改变创建新镜像 -a, --author= Author (e.g., "idcu <idcu@qq.com>") -c, --change=[] Apply Dockerfile instruction to the created image --help=false Print usage -m, --message= Commit message -p, --pause=true Pause container during commit ~~~