aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-10 15:29:02 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-10 15:29:02 -0400
commitb35b8dfa8203a9400ba2ac8202c337aaf40c0d60 (patch)
treeee5c2cff4ab0038ba247a6ab8a4f2665a838131d
parentUse docker compose instead of docker-compose (diff)
downloadcli-b35b8dfa8203a9400ba2ac8202c337aaf40c0d60.zip
Set uid and gid for docker rootless
-rw-r--r--.build.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 493e3e5..a8eae22 100644
--- a/.build.yml
+++ b/.build.yml
@@ -9,6 +9,9 @@ sources:
- https://git.sr.ht/~eugenetriguba/bolt
tasks:
- setup: |
+ USERNAME=$(whoami)
+ echo "$USERNAME:100000:65536" | sudo tee -a /etc/subuid
+ echo "$USERNAME:100000:65536" | sudo tee -a /etc/subgid
cat >> ~/.docker_env << 'EOF'
export XDG_RUNTIME_DIR=$HOME/.docker/run
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock