清理 docker
清理 docker # 使用统计数据 docker system df # 移除已停止的容器、未使用的网络 docker system prune docker system prune -a
...Read more...
数人世相逢,百年欢笑.
清理 docker # 使用统计数据 docker system df # 移除已停止的容器、未使用的网络 docker system prune docker system prune -a
...Read more...
docker 一键升级所有镜像 docker images | sed -n '1!p' | awk '{print $1":"$2}' | while read line;
...Read more...
docker 根据宿主机 pid 查找容器 docker inspect -f '{{.State.Pid}} {{.Id}}' $(docker ps -q) | grep <Pid&g
...Read more...
docker healthcheck interval=DURATION (default: 30s) 检查间隔时间 timeout=DURATION (default: 30s) 超时时间 s
...Read more...
docker commit -a :提交的镜像作者; -c :使用Dockerfile指令来创建镜像; -m :提交时的说明文字; -p :在commit时,将容器暂停。 docker comm
...Read more...
docker-compose -f,--file 指定使用的compose模板文件,默认为docker-compose.yml -p, --project-name NAME 指定项目名称,默认
...Read more...
docker 查看连接数 nsenter -t `docker inspect -f '{{.State.Pid}}' 容器名` -n netstat | grep ESTABLISHED -c
...Read more...