Github messages for voidlinux
 help / color / mirror / Atom feed
From: thegarlynch <thegarlynch@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Any support for rootless docker ? 
Date: Wed, 07 Jul 2021 19:31:34 +0200	[thread overview]
Message-ID: <20210707173134.WDJiBxUi4hY8dxKqxi0wpCZujz5Yez8nGl36SLVrcHY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31566@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

New comment by thegarlynch on void-packages repository

https://github.com/void-linux/void-packages/issues/31566#issuecomment-875793421

Comment:
Ok. i finally get it work. 

```sh
#!/bin/sh

export USER="<<user>>"
export HOME="/home/<<user>>"

exec chpst -u "<<user>>" env XDG_RUNTIME_DIR="/run/user/1000" env DOCKER_HOST="unix:///run/user/1000/docker.sock" env PATH="/home/<<user>>/bin:$PATH" /home/<<user>>/bin/dockerd-rootless.sh
```

also, set /etc/security/pam_env.conf

```
DOCKER_HOST     DEFAULT=unix:///${XDG_RUNTIME_DIR}/docker.sock
PATH            DEFAULT=${HOME}/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
```

if only runit is able to run a service only after login (with USER and HOME environment being set). i could made a package out of this

  parent reply	other threads:[~2021-07-07 17:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31566@inbox.vuxu.org>
2021-06-22 19:07 ` CameronNemo
2021-06-23 15:53 ` thegarlynch
2021-06-23 18:09 ` Duncaen
2021-06-24 10:24 ` thegarlynch
2021-06-24 11:48 ` Duncaen
2021-06-24 11:52 ` thegarlynch
2021-06-24 12:05 ` Duncaen
2021-06-30  5:36 ` thegarlynch
2021-06-30 22:18 ` zdykstra
2021-07-01  3:26 ` [ISSUE] [CLOSED] " thegarlynch
2021-07-07 17:31 ` thegarlynch [this message]
2021-07-07 17:32 ` thegarlynch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210707173134.WDJiBxUi4hY8dxKqxi0wpCZujz5Yez8nGl36SLVrcHY@z \
    --to=thegarlynch@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).