From ac55743238839481a4f4eeb9f4b298873336c6e7 Mon Sep 17 00:00:00 2001 From: Harish Karumuthil Date: Sun, 22 Oct 2023 17:23:48 +0530 Subject: [PATCH] per user podman start --- home/.bashrc | 2 ++ home/.local/Apps/daily-utils/bin/hari-tools.sh | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/home/.bashrc b/home/.bashrc index 2c32eb4..39e4335 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -28,6 +28,8 @@ PS1="${F_BOLD}${C_AQUAMARINE1}\u@\h${C_YELLOW1} \w \\\$${NO_FORMAT} " [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock + export EDITOR=vim export HISTCONTROL=ignoredups export HISTSIZE=11000 diff --git a/home/.local/Apps/daily-utils/bin/hari-tools.sh b/home/.local/Apps/daily-utils/bin/hari-tools.sh index 24c5838..18daab1 100755 --- a/home/.local/Apps/daily-utils/bin/hari-tools.sh +++ b/home/.local/Apps/daily-utils/bin/hari-tools.sh @@ -12,6 +12,15 @@ list-commands(){ typeset -F | cut -d ' ' -f 3 | grep -v '^_' | sort } +# start rootless podman socket +podmanStart(){ + set -x + systemctl --user enable podman.socket + systemctl --user start podman.socket + systemctl --user status podman.socket + echo export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock +} + # ts / tsx to js/jsx tstojs(){ set -x