New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please use /tmp instead of /run/user/${uid} as runtime or temp path #532
Comments
Is the /tmp not a tmpfs? IE Is the issue you are having just a problem with tmpfs mounts? |
Yes, |
yes, you need to setup linger mode for your user if you wish We were enabling linger mode automatically in the past and we got some complains about it, more details here: containers/podman#4224 |
since you can force Also, if lingering mode is not enabled, your containers will be killed as well, so using |
This doesn't look like solution. I have no systemd and can't enable some special systemd lingering mode. Please do not link systemd with containers so hard. |
can you override it by setting I've no systems without systemd to try this out, could you open a PR? |
Yes, I've already done it as a workaround. We can implement a separate config file entry with this directory path. |
@giuseppe, I see that people moved
I see a link to some freedesktop standards https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html. I can't understand how freedesktop and oci images are linked. I have no xorg in production and not interested in it. Can you please clarify what project is red hat working on? Will it be nailed to systemd and desktop? I can just return back to docker. |
@andrew-aladev We want to be able to work on non systemd-based systems. Please open a PR with your suggested patch and we can look at it. |
I've found source commit from docker. It looks like Akihiro Suda was a developer who nailed both rootless docker and buildah to desktop standards and systemd. I can't return back to docker, safe home has already been destroyed. You can see the following poison in core docker code:
You know? For desktop! @rhatdan, We can see that the source issue comes from docker itself, not from red hat. It is not possible just to provide pull request and solve this issue, they won't accept it. I will try to ask docker community about that. |
I am telling you we would be willing to work with you to make this possible. We are open to community involvement and do not need to require Systemd or Gnome settings. |
Your home is safe. Just set
It originated from desktop but not only for desktop. Just same as dBus ("Desktop bus") isn't only for desktops today. Actually, there is a bunch of server software that have been using |
…ode) Please refer to `docs/rootless.md`. TLDR: * Make sure `/etc/subuid` and `/etc/subgid` contain the entry for you * `dockerd-rootless.sh --experimental` * `docker -H unix://$XDG_RUNTIME_DIR/docker.sock run ...` Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Setting the XDG_RUNTIME_DIR will also work for Podman, and you don't need to run a daemon. |
I think we had suggested fixes for this, reopen if I am mistaken. |
Hello. It is not possible today to use rootless
buildah
withscreen
ortmux
.ssh host
.mount | grep /run/user
:none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000)
sudo umount /run/user/1000
.exit
.ssh host
once again.mount | grep /run/user
:none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000)
We can see that
/run/user/1000
will be just re-mounted after user re-login. It makes impossible to use (at least rootless)buildah
. I will write here how to reproduce it in details:ssh host
.tmux
session.buildah unshare something
insidetmux
session.tmux
sesion andexit
fromhost
.ssh host
.tmux
session.You may see other strong errors related to
/run/user/1000
, but it is not important. This folder was just re-mounted and all previous content was lost. Please do not use/run/user
anywhere, use/tmp
instead.I am proposing the following patch https://gist.github.com/andrew-aladev/ff07c2ce331fba96918b0a8af62f6afd
PS I can't understand what
XDG_RUNTIME_DIR
is doing here.buildah
has nothing to do withXorg
and its sesions. I want to insist on removingXDG_RUNTIME_DIR
too.Output of
buildah version
:Output of
uname -a
:The text was updated successfully, but these errors were encountered: