Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save afrittoli/9e1d3bd682adca8da4529892edb8ada2 to your computer and use it in GitHub Desktop.
Save afrittoli/9e1d3bd682adca8da4529892edb8ada2 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = "fedora/33-cloud-base"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 8
end
config.vm.provision "shell", inline: <<-SHELL
yum install -y podman
groupadd -f -r podman
#systemctl edit podman.socket
mkdir -p /etc/systemd/system/podman.socket.d
cat >/etc/systemd/system/podman.socket.d/override.conf <<EOF
[Socket]
SocketMode=0660
SocketUser=root
SocketGroup=podman
EOF
systemctl daemon-reload
echo "d /run/podman 0770 root podman" > /etc/tmpfiles.d/podman.conf
sudo systemd-tmpfiles --create
systemctl enable podman.socket
systemctl start podman.socket
usermod -aG podman $SUDO_USER
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment