mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 08:29:33 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			793 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			793 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Install Docker
 | |
| 
 | |
| The installation command is as follows:
 | |
| 
 | |
| ```bash
 | |
| $ curl -fsSL https://get.docker.com | bash -s docker --mirror aliyun
 | |
| ``
 | |
| 
 | |
| ## 2.2 Start Docker
 | |
| 
 | |
| ```bash
 | |
| $ systemctl start docker
 | |
| ```
 | |
| 
 | |
| ## 2.3 Test Docker
 | |
| 
 | |
| ```bash
 | |
| $ docker run hello-world
 | |
| ```
 | |
| 
 | |
| ## 2.4 Configure Docker Acceleration
 | |
| 
 | |
| ```bash
 | |
| $ mkdir -p /etc/docker
 | |
| $ tee /etc/docker/daemon.json <<-'EOF'
 | |
| {
 | |
|   "registry-mirrors": ["https://registry.docker-cn.com"]
 | |
| }
 | |
| EOF
 | |
| $ systemctl daemon-reload
 | |
| $ systemctl restart docker
 | |
| ```
 | |
| 
 | |
| ## 2.5 Install Docker Compose
 | |
| 
 | |
| ```bash
 | |
| $ sudo curl -L "https://github.com/docker/compose/releases/download/latest/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
 | |
| $ sudo chmod +x /usr/local/bin/docker-compose
 | |
| ```
 | |
| 
 | |
| ## 2.6 Test Docker Compose
 | |
| 
 | |
| ```bash
 | |
| $ docker-compose --version
 | |
| ```
 |