mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
dockerdCmd="dockerd -s overlay2 -D"
 | 
						|
 | 
						|
export DOCKER_BUILDKIT=1
 | 
						|
 | 
						|
if [ -n "$TMUX_ENTRYPOINT" ]; then
 | 
						|
  tmux new -s demo -d
 | 
						|
  tmux new-window "$dockerdCmd"
 | 
						|
  tmux new-window
 | 
						|
  tmux a -t demo
 | 
						|
else
 | 
						|
  ( $dockerdCmd &>/var/log/dockerd.log & )
 | 
						|
  exec ash
 | 
						|
fi
 |