Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

/tmp directory on ACI being built is unusable #274

@dimas

Description

@dimas

Neither "acbuild copy" nor commands started with "acbuild run" cannot make any changes on /tmp

$ acbuild run -- touch /tmp/xxx
Running: [touch /tmp/xxx]
$ acbuild run -- ls -l /tmp
Running: [ls -l /tmp]
total 0

To be honest I do not know much on how containers work so maybe that whole tempfs thing lives only for the duration of the command in which case it is an expected behaviour. This theory is supported by

$ acbuild run -- bash -c 'touch /tmp/xxx; ls -l /tmp'
Running: [bash -c touch /tmp/xxx; ls -l /tmp]
total 0
-rw-r--r-- 1 root root 0 Nov 29 09:37 xxx

But maybe it makes sense to put this in docs / FAQ too then? Because /tmp is a typical choice of downloading something before installing it so can save people some time
(I searched first - https://github.com/containers/build/search?utf8=%E2%9C%93&q=tmp)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions