This Docker image runs a Counter-Strike 1.6 HLDS (Build 3111e) server inside a container.
GitHub: https://github.com/kuyajnonymous/hlds3111eā Docker Hub: https://hub.docker.com/r/jnonymous420/hlds3111eā
Run with 'docker run' command:
docker run -d --name hlds_server \\
-p 27015:27015/tcp -p 27015:27015/udp \\
jnonymous420/hlds3111e \\
./hlds_run +ip 0.0.0.0 +port 27015 -game cstrike +map de_dust \\
+maxplayers 16 -noauth -insecure +sv_lan 1
ā What this does:
If you want to manage the server with Docker Compose, use this configuration:
version: '3.8'
services:
hlds_server:
image: jnonymous420/hlds3111e
container_name: hlds3111e
restart: unless-stopped
user: "0:0" # Running as root (consider using a non-root user for security)
tty: true
stdin_open: true
# volumes:
# - /opt/cstrike:/server/hlds_l/cstrike # Uncomment to mount a custom cstrike folder
ports:
- "27015:27015/tcp"
- "27015:27015/udp"
command: >
./hlds_run +ip 0.0.0.0 +port 27015 -game cstrike +map de_dust
+maxplayers 16 -noauth -insecure +sv_lan 1
security_opt:
- no-new-privileges:1
To run the server:
docker-compose up -d
This will start the HLDS server and automatically restart it if it crashes.
You can modify HLDS settings by passing arguments to 'hlds_run'.
| Option | Description | Default |
|---|---|---|
| +ip 0.0.0.0 | Bind server to all network interfaces | 0.0.0.0 |
| +port 27015 | Game server port | 27015 |
| -game cstrike | Run as Counter-Strike 1.6 server | cstrike |
| +map de_dust | Default map | de_dust |
| +maxplayers 16 | Maximum players allowed | 16 |
| -noauth | Disable authentication with Steam servers | Enabled |
| -insecure | Disable VAC security | Enabled |
| +sv_lan 1 | LAN mode (1 = LAN, 0 = Internet) | 1 |
To customize settings, change the command in 'docker-compose.yml' or 'docker run'.
To keep server data (maps, configs, etc.), mount a local directory:
docker run -d --name hlds_server \\
-p 27015:27015/tcp -p 27015:27015/udp \\
-v /opt/cstrike:/server/hlds_l/cstrike \\
jnonymous420/hlds3111e \\
./hlds_run +ip 0.0.0.0 +port 27015 -game cstrike +map de_dust \\
+maxplayers 16 -noauth -insecure +sv_lan 1
š¹ This ensures 'cstrike' files persist after container restarts.
Check server logs:
docker logs -f hlds_server
Restart the container:
docker restart hlds_server
Stop the container:
docker stop hlds_server
This project follows the Valve Software EULA. Use at your own risk.
Content type
Image
Digest
sha256:43d5431d4ā¦
Size
356.5 MB
Last updated
over 1 year ago
docker pull jnonymous420/hlds3111e