把日常最常用的 Docker 命令整理成一份备忘,省得每次翻手册。容器操作docker ps # 查看运行中容器 docker logs -f 容器名 # 跟踪日志 docker restart 容器名 # 重启 docker rm 容器名 # 删除已停止容器镜像清理长期不清理镜像会占满磁盘,定期执行悬空镜像清理。备忘贵在常更新,命令用熟了自然就记住了。 Last modification:December 2, 2026 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate