13 lines
		
	
	
		
			316 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			316 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
set -eu
 | 
						|
 | 
						|
: "${DISTRIBUTION_VERSION:=2}"
 | 
						|
: "${DISTRIBUTION_HOST:=localhost}"
 | 
						|
: "${DISTRIBUTION_PORT:=8080}"
 | 
						|
 | 
						|
echo "::group::Starting registry:${DISTRIBUTION_VERSION}"
 | 
						|
(
 | 
						|
  set -x
 | 
						|
  docker run -d --name registry -p "${DISTRIBUTION_PORT}:5000" "registry:${DISTRIBUTION_VERSION}"
 | 
						|
)
 | 
						|
echo "::endgroup::" |