You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM phusion/baseimage:0.10.1
LABEL maintainer="yulin.li@blockin.com"
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ENV HOME /root
ENV TERM xterm
RUN echo $HOME
RUN mkdir -p /etc/service/xcoind
ADD run.sh /etc/service/xcoind/run
RUN chmod +x /etc/service/xcoind/run
File: run.sh
#!/usr/bin/env bash
echo $HOME
In Dockerfile RUN echo $HOME
echo /root
but in run.sh echo $HOME
echo nothing
some cmds: docker build -t test --no-cache . docker run --name tt -d test docker logs --tail 50 --follow --timestamps tt
and if login docker docker exec -it tt bash
then run echo $HOME
show:
/root
Sometimes the HOME of root is /root
And Somtimes it is /
Why the HOME enviroment change sometimes?
The text was updated successfully, but these errors were encountered: