Docker tun device into container install openvpn or other soft, which uses tun devices
Last active
December 13, 2022 10:52
-
-
Save ptflp/d2573ab396cfb3deb12d7cfe1ef0fa1c to your computer and use it in GitHub Desktop.
docker tun device into container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Awsome. Thanks