Skip to content

Instantly share code, notes, and snippets.

@adrianriobo
Created October 15, 2020 14:55
Show Gist options
  • Save adrianriobo/66ee825b8f80862bb3e6132d5496fd2f to your computer and use it in GitHub Desktop.
Save adrianriobo/66ee825b8f80862bb3e6132d5496fd2f to your computer and use it in GitHub Desktop.
podman as systemd generator
#!/bin/bash
podman run -d --name=gvisor-tap-vsock --privileged --net=host -it quay.io/crcont/gvisor-tap-vsock:v3
podman generate systemd --restart-policy=no gvisor-tap-vsock > /etc/systemd/system/gvisor-tap-vsock.service
systemctl daemon-reload
systemctl enable gvisor-tap-vsock.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment