[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic-devel] ENV container oci



On 13/04/17 15:30, Daniel Walsh wrote:
> On 04/13/2017 09:21 AM, Frantisek Kluknavsky wrote:
>> Hi,
>>
>> what is currently the recommended way for a process to know it runs in a
>> container?
>>
>> RHEL-based containers define $container environment variable with a
>> value 'docker'. Since this is both legally problematic and factually
>> often incorrect, we want to change the value to 'oci'.
>>
>> An API-breaking change should not be done too often/needlessly. Any
>> comments appreciated.
>>
>> Have a nice day,
>>
>> Fero
>>
> I think this is fine to change.  systemd is the only one that uses this
> environment variable that I know of and it ignores the value, just
> checks to see if $container is set.
> 

Sosreport depends on the exact value 'docker' (I found out by breaking
it). It has become public api, it is hard to control who uses it.

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]