Build based on ghcr.io/dreamacro/clash-premium:latest.
podman run -d --name clash --network host --device /dev/net/tun -v /etc/clash:/etc/clash --cap-add NET_ADMIN,MKNOD docker.io/siji/clash:latest
Podman container file:
# Location: /etc/containers/systemd/clash.container
[Unit]
Description=The Clash Service
After=local-fs.target network.target
[Container]
ContainerName=clash
Image=docker.io/siji/clash:latest
Network=host
Volume=/etc/clash:/etc/clash
AddCapability=NET_ADMIN MKNOD
AddDevice=/dev/net/tun
AutoUpdate=registry
[Install]
WantedBy=multi-user.target
Use the container file:
systemctl daemon-reload
systemctl start clash.service
Content type
Image
Digest
sha256:928f34ba0…
Size
65.4 MB
Last updated
4 months ago
docker pull siji/clash