Prerequisites
Before you begin, ensure you have the following installed:Java
JDK 21 or higher
Maven
Apache Maven 3.6+
Docker
Docker Engine with TCP socket enabled
Git
For cloning the repository
Docker Configuration
The Runtime service connects to Docker via TCP socket. Configure Docker to expose the API:- Linux
- macOS
- Windows
Edit the Docker daemon configuration:Add the following configuration:Restart Docker:
Installation Steps
Install Dependencies
Use Maven to download all required dependencies:This will install:
- Spring Boot 4.0.2 (Web MVC)
- Docker Java Client 3.3.6
- Lombok for Java annotations
Configure Application (Optional)
The default configuration in You can modify the port by editing
application.properties:src/main/resources/application.properties.Verify Installation
Once the service is running, you should see:Expected Response
Expected Response
Project Structure
Key Dependencies
Frompom.xml:
Troubleshooting
Docker connection failed
Docker connection failed
Error:
Connect to localhost:2375 [localhost/127.0.0.1] failedSolution: Ensure Docker is configured to listen on TCP port 2375. See Docker Configuration section.Port already in use
Port already in use
Error:
Port 8081 is already in useSolution: Either stop the process using port 8081 or change the port in application.properties:Maven build fails
Maven build fails
Error: If needed, set
Failed to execute goalSolution: Ensure you’re using Java 21 or higher:JAVA_HOME to point to JDK 21.Docker images not found
Docker images not found
Error:
Image not found: python:3.11Solution: Pull the required images manually:Next Steps
Supported Languages
Learn about all supported programming languages
API Reference
Explore the code execution API
Deployment
Deploy Runtime to production
Security
Understand security features