mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
Merge pull request #7005 from glance-/HOME-in-container
Pass in HOME env-var in container mode.
This commit is contained in:
commit
517efbf386
@ -43,7 +43,7 @@ if [ -n "$compose_dir" ]; then
|
|||||||
VOLUMES="$VOLUMES -v $compose_dir:$compose_dir"
|
VOLUMES="$VOLUMES -v $compose_dir:$compose_dir"
|
||||||
fi
|
fi
|
||||||
if [ -n "$HOME" ]; then
|
if [ -n "$HOME" ]; then
|
||||||
VOLUMES="$VOLUMES -v $HOME:$HOME -v $HOME:/root" # mount $HOME in /root to share docker.config
|
VOLUMES="$VOLUMES -v $HOME:$HOME -e HOME" # Pass in HOME to share docker.config and allow ~/-relative paths to work.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Only allocate tty if we detect one
|
# Only allocate tty if we detect one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user