mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-10-30 23:42:54 +00:00 
			
		
		
		
	Bind challenge container port to localhost only
This commit is contained in:
		| @@ -44,9 +44,9 @@ challenge::run() { | ||||
|         mount_volumes="${mount_baseimage:-} ${mount_challenge}" | ||||
|     fi | ||||
|     popd | ||||
|     docker run --rm                                          \ | ||||
|                -p ${CHALLENGE_PORT}:${CHALLENGE_PORT}        \ | ||||
|                ${mount_volumes:-}                            \ | ||||
|                ${@:-}                                        \ | ||||
|     docker run --rm                                             \ | ||||
|                -p 127.0.0.1:${CHALLENGE_PORT}:${CHALLENGE_PORT} \ | ||||
|                ${mount_volumes:-}                               \ | ||||
|                ${@:-}                                           \ | ||||
|                -e AVATAO_SECRET="${AVATAO_SECRET}" ${IMAGE_NAME} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user