* bug#37161: ‘guix pack -f docker’ creates an image without /tmp
@ 2019-08-23 14:57 Ludovic Courtès
2019-08-23 20:12 ` Ricardo Wurmus
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-08-23 14:57 UTC (permalink / raw)
To: bug-Guix
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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#37161: ‘guix pack -f docker’ creates an image without /tmp
2019-08-23 14:57 bug#37161: ‘guix pack -f docker’ creates an image without /tmp Ludovic Courtès
@ 2019-08-23 20:12 ` Ricardo Wurmus
2019-08-27 10:47 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2019-08-23 20:12 UTC (permalink / raw)
To: 37161; +Cc: ludovic.courtes
> 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? If
this is still possible, I agree that /tmp should exist in the generated
image – even if it’s just a plain mount point.
--
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#37161: ‘guix pack -f docker’ creates an image without /tmp
2019-08-23 20:12 ` Ricardo Wurmus
@ 2019-08-27 10:47 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-08-27 10:47 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 37161-done
Hi,
Ricardo Wurmus <rekado@elephly.net> 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’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-27 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-23 14:57 bug#37161: ‘guix pack -f docker’ creates an image without /tmp Ludovic Courtès
2019-08-23 20:12 ` Ricardo Wurmus
2019-08-27 10:47 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).