This Docker image allows you to run a Snell server, a proxy protocol designed to improve the performance and security of your network connections.
The Dockerfile is based on the debian:stable-slim
image and installs the necessary dependencies and Snell server. It supports multiple architectures, including amd64, aarch64, armv7l, and i386.
The entrypoint.sh
script generates a random pre-shared key (PSK) if none is provided, creates the Snell server configuration file, and starts the Snell server.
- To build the Docker image, run the following command:
docker buildx build --build-arg SNELL_VERSION=4.0.1 --platform linux/amd64,linux/arm64,linux/386,linux/arm/v7 -t archean/snell:v4.0.1 --push .
To use this Docker image, simply pull it from the Docker Hub repository:
docker pull archean/snell
Then run the Docker container:
docker run -d --name snell -p 8182:8182 archean/snell
By default, the Snell server listens on port 8182. You can change the port by modifying the -p
argument when running the container. If you want to use a custom pre-shared key (PSK), you can pass it as an environment variable:
docker run -d --name snell -p 8182:8182 -e PSK="your_custom_psk" archean/snell
To view the generated PSK and port, check the logs:
docker logs snell
This image exposes the following ports:
8182/tcp
: Snell server TCP port8182/udp
: Snell server UDP port
Feel free to submit issues and pull requests if you find any problems or have suggestions for improvements.
This Docker image is released under the MIT License. See LICENSE for more information.