DockerCompose
命令格式:
bash
docker compose [options] [command]
options
参数 | 说明 |
---|---|
-f | 指定compose文件的路径和名称(处于compose文件的目录可不写) |
-p | 指定project名称 |
commands
command | 说明 |
---|---|
up | 创建并启动所有service容器 |
dowm | 停止并移除所有容器和网络 |
ps | 列出所有启动的容器 |
logs | 查看指定容器的日志 |
stop | 停止容器 |
start | 启动容器 |
restart | 重启容器 |
top | 查看运行的进程 |
exec | 在指定运行的容器中执行命令 |
最近更新:10/11/2024, 5:05:40 AM
原文链接:DockerCompose
上一篇:Electron Security Warning (Insecure Content-Security-Policy)|下一篇:Nginx 日志分割脚本(仅供参考)