Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cmspam authored Apr 24, 2024
1 parent 295a2c2 commit ad94644
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,31 @@ The reason is that, without doing this, docker's iptables settings will be block
First, make the directory to hold incus configuration:
``` mkdir /var/lib/incus ```

With Docker:

With Podman (recommended):
```
docker run -d \
podman run -d \
--name incus \
--cgroups=no-conmon \
--privileged \
--env SETIPTABLES=true \
--restart unless-stopped \
--device /dev/kvm \
--device /dev/vsock \
--device /dev/vhost-vsock \
--device /dev/vhost-net \
--network host \
--volume /sys/fs/cgroup:/sys/fs/cgroup \
--volume /var/lib/incus:/var/lib/incus \
--volume /lib/modules:/lib/modules:ro \
ghcr.io/cmspam/incus-docker:latest
```
With Docker:

With Podman:
```
podman run -d \
docker run -d \
--name incus \
--privileged \
--env SETIPTABLES=true \
--restart unless-stopped \
--device /dev/kvm \
--device /dev/vsock \
--device /dev/vhost-vsock \
Expand All @@ -67,6 +69,7 @@ podman run -d \
ghcr.io/cmspam/incus-docker:latest
```


If you use OpenVSwitch, add:
```
--volume /run/openvswitch:/run/openvswitch
Expand Down

0 comments on commit ad94644

Please sign in to comment.