I've got a problem with environment variables in docker. When I run command:
$ docker run ubuntu /bin/bash -c "echo $HOME"
I've got response:
/Users/bylek
But when I run:
$ docker run -it ubuntu /bin/bash
and then:
root@5e079c47affa:/# echo $HOME
I've got:
/root
Second response is correct. Why first command return $HOME value from my host?