Skip to content

Instantly share code, notes, and snippets.

@nhthai2005
Forked from ptflp/README.md
Created August 10, 2021 05:01
Show Gist options
  • Save nhthai2005/a7c1989e834eaaa0eedb5b1f4513f764 to your computer and use it in GitHub Desktop.
Save nhthai2005/a7c1989e834eaaa0eedb5b1f4513f764 to your computer and use it in GitHub Desktop.
docker tun device into container

Docker tun device into container install openvpn or other soft, which uses tun devices

docker run -d --name tundevica \
--cap-add=NET_ADMIN \
--device /dev/net/tun \
ubuntu tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment