[+] apt 暂时去除docker 移动到 docker 中
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
				
			This commit is contained in:
		
							parent
							
								
									2a1d59d6c5
								
							
						
					
					
						commit
						ccf5f8bbb6
					
				| @ -11,11 +11,6 @@ if [ -f /etc/apt/sources.list.d/${lsb_dist}.sources ]; then | |||||||
| fi | fi | ||||||
| # 配置镜像源 | # 配置镜像源 | ||||||
| echo "deb https://mirrors.martin98.com/repository/$lsb_dist $release $components" > /etc/apt/sources.list | echo "deb https://mirrors.martin98.com/repository/$lsb_dist $release $components" > /etc/apt/sources.list | ||||||
| # docker |  | ||||||
| if [ ! -f /usr/share/keyrings/docker-archive-keyring.gpg ]; then |  | ||||||
|     curl -fsSL https://mirrors.martin98.com/repository/docker-ce/linux/$lsb_dist/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg |  | ||||||
| fi |  | ||||||
| echo "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.martin98.com/repository/docker-ce/linux/$lsb_dist $lsb_dist stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null |  | ||||||
| 
 | 
 | ||||||
| # 关闭交互式弹窗 | # 关闭交互式弹窗 | ||||||
| echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||||||
|  | |||||||
| @ -17,6 +17,12 @@ if is_wsl; then | |||||||
| elif command_exists docker; then | elif command_exists docker; then | ||||||
|   echo "Docker 已安装.... 跳过安装" |   echo "Docker 已安装.... 跳过安装" | ||||||
| else | else | ||||||
|  |   # docker | ||||||
|  |   if [ ! -f /usr/share/keyrings/docker-archive-keyring.gpg ]; then | ||||||
|  |       curl -fsSL https://mirrors.martin98.com/repository/docker-ce/linux/$lsb_dist/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||||||
|  |   fi | ||||||
|  |   echo "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.martin98.com/repository/docker-ce/linux/$lsb_dist $lsb_dist stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||||||
|  | 
 | ||||||
|   curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/docker-install.sh | sh |   curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/docker-install.sh | sh | ||||||
|   cat > /etc/docker/daemon.json <<EOF |   cat > /etc/docker/daemon.json <<EOF | ||||||
| { | { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user