Hysteria Docker Image by Teddysun
Hysteria is a feature-packed proxy & relay utility optimized for lossy, unstable connections, powered by a customized QUIC protocol.
Docker images are built for quick deployment in various computing cloud providers.
For more information on docker and containerization technologies, refer to official document.
Prepare the host
If you need to install docker by yourself, follow the official installation guide.
Pull the image
$ docker pull teddysun/hysteria
This pulls the latest release of Hysteria.
It can be found at Docker Hub.
Start a container
You must create a configuration file /etc/hysteria/server.json
in host at first:
$ mkdir -p /etc/hysteria
A sample in JSON like below:
{
"listen": ":8998",
"cert": "/etc/hysteria/cert.crt",
"key": "/root/hysteria/private.key",
"obfs": "dGVkZHlzdW4uY29tCg=="
}
There is an example to start a container that listen on port 8998
, run as a Hysteria server like below:
$ docker run -d -p 8998:8998 --name hysteria --restart=always -v /etc/hysteria:/etc/hysteria teddysun/hysteria
Warning: The port number must be same as configuration and opened in firewall.