mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Merge pull request #4071 from NiR-/fix/run-as-container
Fix path of the parent dir of COMPOSE_FILE
This commit is contained in:
commit
e563b58595
@ -35,7 +35,7 @@ if [ "$(pwd)" != '/' ]; then
|
|||||||
VOLUMES="-v $(pwd):$(pwd)"
|
VOLUMES="-v $(pwd):$(pwd)"
|
||||||
fi
|
fi
|
||||||
if [ -n "$COMPOSE_FILE" ]; then
|
if [ -n "$COMPOSE_FILE" ]; then
|
||||||
compose_dir=$(dirname $COMPOSE_FILE)
|
compose_dir=$(realpath $(dirname $COMPOSE_FILE))
|
||||||
fi
|
fi
|
||||||
# TODO: also check --file argument
|
# TODO: also check --file argument
|
||||||
if [ -n "$compose_dir" ]; then
|
if [ -n "$compose_dir" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user