mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	
							
								
								
									
										2
									
								
								docker/kms/.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								docker/kms/.dockerignore
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| .dockerignore | ||||
| README.md | ||||
							
								
								
									
										29
									
								
								docker/kms/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								docker/kms/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| # Dockerfile for KMS Server | ||||
| # Copyright (C) 2018 Teddysun <i@teddysun.com> | ||||
| # Reference URL: | ||||
| # https://github.com/Wind4/vlmcsd | ||||
|  | ||||
| FROM alpine:latest | ||||
| MAINTAINER Teddysun <i@teddysun.com> | ||||
|  | ||||
| ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip | ||||
|  | ||||
| RUN apk add --no-cache --virtual .build-deps \ | ||||
|     g++ \ | ||||
|     gcc \ | ||||
|     wget \ | ||||
|     make \ | ||||
|     unzip \ | ||||
|     && cd /tmp \ | ||||
|     && wget -O vlmcsd.zip $KMS_RELEASE \ | ||||
|     && unzip vlmcsd.zip \ | ||||
|     && cd vlmcsd-master \ | ||||
|     && make \ | ||||
|     && cp -p bin/vlmcsd /usr/bin/ \ | ||||
|     && chmod 755 /usr/bin/vlmcsd \ | ||||
|     && rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \ | ||||
|     && apk del .build-deps | ||||
|  | ||||
| EXPOSE 1688 | ||||
|  | ||||
| CMD [ "/usr/bin/vlmcsd", "-D" ] | ||||
							
								
								
									
										33
									
								
								docker/kms/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								docker/kms/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| ## KMS Server Docker Image by Teddysun | ||||
|  | ||||
| This is A fully Microsoft compatible KMS server with Docker Image. | ||||
| vlmcsd is a fully Microsoft compatible KMS server that provides product activation services to clients.It is meant as a drop-in replacement for a Microsoft KMS server (Windows computer with KMS key entered).It currently supports KMS protocol versions 4, 5 and 6. | ||||
| vlmcsd is designed to run on POSIX compatible operating systens. It only requires a basic C library with a BSD-style sockets API and either `fork` or `pthreads`. That allows it to run on most embedded systems like routers, NASes, mobile phones, tablets, TVs, settop boxes, etc. Some efforts have been made that it also runs on Windows. | ||||
|  | ||||
| Docker images are built for quick deployment in various computing cloud providers. | ||||
| For more information on docker and containerization technologies, refer to [official document][1]. | ||||
|  | ||||
| ## Prepare the host | ||||
|  | ||||
| If you need to install docker by yourself, follow the [official installation guide][2]. | ||||
|  | ||||
| ## Pull the image | ||||
|  | ||||
| ```bash | ||||
| $ docker pull teddysun/kms | ||||
| ``` | ||||
|  | ||||
| This pulls the latest release of shadowsocks-libev. | ||||
| It can be found at [Docker Hub][3]. | ||||
|  | ||||
| ## Start a container | ||||
|  | ||||
| ```bash | ||||
| $ docker run -d -p 1688:1688 --name kms teddysun/kms | ||||
| ``` | ||||
|  | ||||
| **Note**: The TCP port number `1688` must be opened in firewall. | ||||
|  | ||||
| [1]: https://docs.docker.com/ | ||||
| [2]: https://docs.docker.com/install/ | ||||
| [3]: https://hub.docker.com/r/teddysun/kms/ | ||||
		Reference in New Issue
	
	Block a user