Subject: bug#37161: closed (Re: bug#37161: ‘guix pack -f docker’ creates an image without /tmp)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 27 Aug 2019 10:48:02 +0000

Your bug report

#37161: ‘guix pack -f docker’ creates an image without /tmp

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
37161: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37161
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#37161: ‘guix pack -f docker’ creates an image without /tmp
From: Ludovic Courtès <[email-masked]>
To: Ricardo Wurmus <[email-masked]>
Cc: [email-masked]
Date: Tue, 27 Aug 2019 12:47:22 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Ricardo Wurmus <[email-masked]> skribis:

>> One can work around it by asking Docker to create /tmp:
>>
>>   docker run --tmpfs /tmp …
>>
>> However, it seems easier to just create /tmp upfront in the image.
>
> If /tmp exists in the image can a user still overwrite it to either map
> an outside directory to /tmp in the container or to use a tmpfs?

Yes I think so.

> If this is still possible, I agree that /tmp should exist in the
> generated image – even if it’s just a plain mount point.

Done in commit 7979a287f8eb84cbbfa44629951572408939a756.

Thanks,
Ludo’.

Subject: ‘guix pack -f docker’creates an image without /tmp
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Fri, 23 Aug 2019 16:57:15 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix!

Currently ‘guix pack -f docker’ creates an image that lacks /tmp, but
some programs fail to run when /tmp is missing.

One can work around it by asking Docker to create /tmp:

  docker run --tmpfs /tmp …

However, it seems easier to just create /tmp upfront in the image.

Ludo’.