Docker命令
Fintech技术汇
·
2021-02-01
·
via 博客园 - Fintech技术汇
命令
用途
docker ps -a -q --filter ancestor=ubuntu | xargs docker stop
停止ubuntu镜像的所有容器
docker ps -a -q --filter ancestor=ubuntu | xargs docker rm
删除ubuntu镜像的所有容器
docker ps -a -q -f status=exited | xargs docker rm
删除所有已经stop的container
docker rm -f container_id_or_name
强制删除容器
docker logs container_id
查看容器对应的log
docker ps --no-trunc
显示运行容器的完整命令
docker save -o mynginx.tar mynginx:latest
Save an image to a tar file
docker load -i mynginx.tar
Load the image from the tar file
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。