Docker image for anytls-go, a TLS proxy server.
- anytls-go:
0.0.13 - Go toolchain:
1.26 - Base image:
alpine:3.23
linux/amd64linux/arm64
latest: latest build from the default branch0.0.13: current AnyTLS version build0.0: major/minor tag for versioned releases
Run with a generated password:
docker run -d \
--name anytls \
-p 8443:8443 \
domizhang/anytls:latestRead the generated password from logs:
docker logs anytlsRun with a fixed password:
docker run -d \
--name anytls \
-p 8443:8443 \
-e PSK="your-secure-password" \
domizhang/anytls:latestCustomize listener and extra arguments:
docker run -d \
--name anytls \
-p 9443:9443 \
-e LISTEN_ADDR="0.0.0.0:9443" \
-e PSK="your-secure-password" \
domizhang/anytls:latest \
--helpservices:
anytls:
image: domizhang/anytls:latest
container_name: anytls
restart: unless-stopped
ports:
- "8443:8443"
environment:
LISTEN_ADDR: 0.0.0.0:8443
PSK: your-secure-password| Variable | Default | Description |
|---|---|---|
LISTEN_ADDR |
0.0.0.0:8443 |
Server listen address and port |
PSK |
generated | Pre-shared key. If empty, a random key is generated and printed once at startup |
ARGS |
empty | Deprecated compatibility option. Prefer passing extra arguments after the image name |
- Use a strong explicit
PSKin production. - The generated
PSKis printed to container logs so the client can be configured. Treat logs as sensitive. - Provided
PSKvalues are not printed. - Do not expose the service publicly without firewall rules or an explicit access policy.
docker build \
--build-arg VERSION=0.0.13 \
-t domizhang/anytls:local .The anytls-go version is pinned in VERSION and Dockerfile. To update:
- Check the upstream anytls-go releases.
- Update the
VERSIONfile andARG VERSIONdefaults. - Build and test the image.
- Tag the repository as
vX.Y.Zto publish versioned tags.
This repository builds anytls-go from upstream source for the target platform. anytls-go is distributed under its upstream license.
Runtime package layers are rebuilt against current repository metadata, even when the application version is unchanged. CI rejects the two CA roots revoked in October 2026 by DER SHA256 and fails on an empty or unreadable trust bundle.