toolbox/src
Debarshi Ray 2befde83d1 cmd/initContainer: Mount a tmpfs at /tmp to match the host
Podman doesn't mount a tmpfs at /tmp by default - it needs to be
separately requested. However, doing it as part of 'podman create ...'
won't add a tmpfs at /tmp for existing toolbox containers. Therefore,
it's best done as part of the entry point.

The mount options are the same as used by systemd (see tmp.mount) to
provide a tmpfs at the host's /tmp.

For what it's worth, the mount flags do differ slightly from the host.

The host has:
$ findmnt --output OPTIONS,PROPAGATION /tmp
OPTIONS                  PROPAGATION
rw,nosuid,nodev,seclabel shared

The container has:
$ findmnt --output OPTIONS,PROPAGATION /tmp
OPTIONS                                        PROPAGATION
rw,nosuid,nodev,seclabel,uid=100000,gid=100000 private

The uid and gid options don't show up on the host because both are 0,
and hence skipped by the tools.

https://github.com/containers/toolbox/issues/513
2020-08-05 16:29:30 +02:00
..
cmd cmd/initContainer: Mount a tmpfs at /tmp to match the host 2020-08-05 16:29:30 +02:00
pkg pkg/utils: Add function creating human-readable duration strings 2020-07-24 17:31:57 +02:00
go-build-wrapper build: Ensure reproducible builds 2020-07-07 18:11:38 +02:00
go.mod build: Add github.com/docker/go-units 2020-07-24 17:31:51 +02:00
go.sum build: Add github.com/docker/go-units 2020-07-24 17:31:51 +02:00
meson.build build, pkg/version: Embed the version from Meson into the binary 2020-07-03 15:28:36 +02:00
toolbox.go Add a skeleton for the Go rewrite 2020-05-12 16:58:03 +02:00