if you remove /etc/hosts from your image , rkt generates a new one and
adds the hostname

2016-07-11 19:23 GMT+02:00 Derek Mahar <[email protected]>:
> https://github.com/coreos/rkt/issues/2223 is an open issue, so I guess
> adding a host name to /etc/hosts in a container is still a work in progress.
>
> On Monday, 11 July 2016 05:44:04 UTC-4, Jonathan Boulle wrote:
>>
>> Sorry, I guess I was confused, and
>> https://github.com/coreos/rkt/issues/2223 is probably a better one to look
>> at
>>
>> On 11 July 2016 at 11:25, Alban Crequy <[email protected]> wrote:
>>>
>>> https://github.com/coreos/rkt/pull/2761 was about /etc/hostname and
>>> not /etc/hosts. So that's not helping for adding more entries in
>>> /etc/hosts.
>>>
>>> On Mon, Jul 11, 2016 at 11:17 AM, Jonathan Boulle
>>> <[email protected]> wrote:
>>> > What version of rkt are you using? I believe this was fixed in
>>> > https://github.com/coreos/rkt/pull/2761 which landed in 1.9.0
>>> >
>>> > On 9 July 2016 at 02:27, Derek Mahar <[email protected]> wrote:
>>> >>
>>> >> How can I instruct 'rkt run' to add a particular host name (for
>>> >> example,
>>> >> that specified in '--hostname') to "/etc/hosts" inside the container?
>>> >> https://github.com/kubernetes/kubernetes/issues/26102 discusses this
>>> >> issue
>>> >> and others, but much of the discussion I don't understand.
>>> >>
>>> >> Thank you,
>>> >>
>>> >> Derek
>>
>>
>

Reply via email to