This is a basic example showing how to use the DevTunnel DevContainer Feature.
This devcontainer configuration includes:
- Ubuntu base image
- DevTunnel CLI (latest version)
- Post-create command that verifies installation
- Open this directory in VS Code with the Dev Containers extension installed
- Reopen in Container when prompted
- Login to DevTunnel:
devtunnel user login
- Start a simple web server (example with Python):
python3 -m http.server 8000
- Create a tunnel to share it:
devtunnel host -p 8000 --allow-anonymous
devtunnel listdevtunnel create -adevtunnel host <tunnel-id> -p 8000devtunnel delete <tunnel-id>