Created
May 7, 2021 12:47
-
-
Save afrittoli/9e1d3bd682adca8da4529892edb8ada2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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