Automated build of Docker images for v2fly-core.
2.6K
This is an automated build of Docker images for v2fly-core, based on the official one. It will check daily to see if there is a new release, and build a new Docker image if so. Source is available at https://github.com/raidenii/dockerfiles.
It also allows specifying UID/GID for the Docker container so it does not need to run as root.
Examples:
v2fly-core, with UDS (Unix Domain Sockets):
docker run -d \
--name=v2fly-core \
-u 1000:1000 \
-v /path/to/your/config.json:/etc/v2fly/config.json:ro \
-v /path/to/v2fly/uds/inside/container:/host/uds/location \
--restart unless-stopped \
r2dh/v2fly-core \
run -c /etc/v2fly/config.json
Docker-compose:
---
version: "3"
services:
v2fly-core:
image: r2dh/v2fly-core:latest
container_name: v2fly
user: 1000:1000
volumes:
- /path/to/your/config.json:/etc/v2fly/config.json:ro
- /path/to/v2fly/uds/inside/container:/host/uds/location
restart: unless-stopped
This saves the cost of port mapping going through docker-proxy and has slightly less overhead. Your v2fly configuration needs to use UDS for listening, and the UID/GID the container run as needs to have write access to the mounted volume, of course. A recommended location is /dev/shm.
v2fly-core, with port-mapping:
docker run -d \
--name=v2fly-core \
-u 1000:1000
-v /path/to/your/config.json:/etc/v2fly/config.json:ro \
-p 10086:443 \
--restart unless-stopped \
r2dh/v2fly-core \
run -c /etc/v2fly/config.json
Docker-compose:
---
version: "3"
services:
v2fly-core:
image: r2dh/v2fly-core:latest
container_name: v2fly
user: 1000:1000
volumes:
- /path/to/your/config.json:/etc/v2fly/config.json:ro
ports:
- 10086:443
restart: unless-stopped
Note that docker-proxy can bind to privileged ports (<1024), so you can use high ports inside the container and map to low ports on the host. This removed the need of libcap from the image (and inside the container, the config of v2fly must use unprivileged ports).
Content type
Image
Digest
sha256:814c284be…
Size
9.7 MB
Last updated
11 days ago
docker pull r2dh/v2fly-core