Skip to content

converting problem with docker command #24602

Answered by rhatdan
JKSTAFF asked this question in Q&A
Discussion options

You must be logged in to vote

Not unless /etc/sing-box exists on your host system. Podman does not automatically create files/directories like Docker does. We consider this a potential security risk.

sudo mkdir /etc/sing-box
sudo podman create -it --name singbox --restart=unless-stopped --label io.containers.autoupdate=image --network=host --volume /etc/sing-box:/etc/sing-box:z ghcr.io/sagernet/sing-box:latest -D /var/lib/sing-box -C /etc/sing-box/ run

Should work.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JKSTAFF
Comment options

@rhatdan
Comment options

Answer selected by JKSTAFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants