Skip to content

Instantly share code, notes, and snippets.

View MorganRodgers's full-sized avatar
🍃
I am a leaf on the wind; watch how I soar

MorganRodgers

🍃
I am a leaf on the wind; watch how I soar
View GitHub Profile
@MorganRodgers
MorganRodgers / README.md
Last active September 8, 2022 03:01 — forked from bernardomig/README.md
Setup podman and nvidia-container-runtime

How to setup nvidia-container-runtime and podman/runc

Podman is such a cool project! However, there is no easy way to setup the nvidia-container-runtime and podman so that we can run unprivileged container in a gpu host. This is specially interesting in environments with multiple people accessing the same host (strong isolation between containers!!!).

Steps to setup the whole system

  1. Install podman and friends (buildah and skopeo)

Ubuntu: add-apt-repository -y ppa:projectatomic/ppa && apt install podman buildah skopeo

@MorganRodgers
MorganRodgers / gist:094e3a4ae78329e1b860582438500394
Created May 29, 2019 14:47 — forked from johanmeiring/gist:3002458
"git lg" alias for pretty git log
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"