Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 3
    Not working for me under Alpine 3.7. Commented Jun 14, 2018 at 22:50
  • 2
    @knite Busybox's Ash (used by Alpine) uses ENV. Commented Nov 26, 2018 at 0:34
  • 1
    Has the ENV or SHINIT variable just to be set or to be set to a specific value? I am trying to force docker to read .profile in /root/.profile without explicitly starting with /bin/sh -l Commented Apr 17, 2019 at 21:12
  • @Leon - ENV (or maybe SHINIT) needs to contain the full path of the file to load/source. But this is only for startup of ‘ash’ shell variants - not the common sh or bash shells. Commented Apr 19, 2019 at 5:44
  • Can you provide an example of what should be set in ENV? Commented Jul 5, 2021 at 12:16