提交 53d6cfaa 编写于 作者: D Dong Li 提交者: Jiangtao Hu

map the mouting directory to the right $HOME directory

Fix the case that when the user is root, there is no /home/root
directory
上级 3080bdde
......@@ -92,7 +92,7 @@ function main(){
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v $LOCAL_DIR:/apollo \
-v /media:/media \
-v $HOME:/home/$USER \
-v $HOME:$HOME \
-v /etc/localtime:/etc/localtime:ro \
--net host \
-w /apollo \
......
......@@ -99,7 +99,7 @@ function main() {
--net host \
-v /media:/media \
-v ${APOLLO_ROOT_DIR}/data:/apollo/data \
-v $HOME:/home/$USER \
-v $HOME:$HOME \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v /etc/localtime:/etc/localtime:ro \
-w /apollo \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册