mirror of
				https://github.com/yeasy/docker_practice.git
				synced 2025-10-31 02:03:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			523 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			523 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| # [CentOS](https://hub.docker.com/_/centos)
 | ||
| 
 | ||
| ## 基本信息
 | ||
| 
 | ||
| [CentOS](https://en.wikipedia.org/wiki/CentOS) 是流行的 Linux 发行版,其软件包大多跟 RedHat 系列保持一致。
 | ||
| 
 | ||
| 该仓库位于 `https://hub.docker.com/_/centos` ,提供了 CentOS 从 5 ~ 8 各个版本的镜像。
 | ||
| 
 | ||
| ## 使用方法
 | ||
| 
 | ||
| 默认会启动一个最小化的 CentOS 环境。
 | ||
| 
 | ||
| ```bash
 | ||
| $ docker run --name centos -it centos bash
 | ||
| bash-4.2#
 | ||
| ```
 | ||
| 
 | ||
| ## Dockerfile
 | ||
| 
 | ||
| 请到 https://github.com/docker-library/docs/tree/master/centos 查看。
 |