ForcePilot/scripts/run_docker.sh

10 lines
278 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 检查是否提供了命令行参数
if [ $# -eq 0 ]; then
echo "请提供命令参数例如up -d 或 down"
exit 1
fi
# 将所有命令行参数传递给 docker compose 命令
docker compose -f docker/docker-compose.dev.yml --env-file src/.env "$@"