@@ -129,9 +129,6 @@ private boolean isLimaInstalled() {
129129 }
130130 }
131131
132- /**
133- * Download and install Lima from GitHub releases.
134- */
135132 @ SuppressWarnings ("deprecation" )
136133 private void downloadAndInstallLima () throws IOException {
137134 String arch = getArch ();
@@ -182,9 +179,6 @@ private void downloadAndInstallLima() throws IOException {
182179 log .info ("Lima {} installed successfully" , LIMA_VERSION );
183180 }
184181
185- /**
186- * Get the architecture string for Lima download.
187- */
188182 private String getArch () {
189183 String osArch = System .getProperty ("os.arch" );
190184 switch (osArch ) {
@@ -219,9 +213,6 @@ public void start() throws IOException, InterruptedException {
219213 log .info ("Docker daemon started in Lima VM (instance: {}, port: {})" , instanceId , dockerPort );
220214 }
221215
222- /**
223- * Create and start a Lima VM configured for Docker.
224- */
225216 private void createAndStartLimaVm () throws IOException , InterruptedException {
226217 String limactl = getLimactlPath ();
227218
@@ -270,9 +261,6 @@ private void createAndStartLimaVm() throws IOException, InterruptedException {
270261 ensureDockerRunning ();
271262 }
272263
273- /**
274- * Create Lima configuration YAML for Docker.
275- */
276264 private String createLimaConfig () {
277265 return String .format (
278266 "# Lima VM configuration for docker-java\n " +
@@ -357,9 +345,6 @@ private void ensureDockerRunning() throws IOException, InterruptedException {
357345 }
358346 }
359347
360- /**
361- * Run a Lima shell command in the VM.
362- */
363348 private String runLimaShellCommand (String command ) throws IOException , InterruptedException {
364349 String limactl = getLimactlPath ();
365350 ProcessBuilder pb = new ProcessBuilder (limactl , "shell" , vmName , "bash" , "-c" , command );
@@ -370,9 +355,6 @@ private String runLimaShellCommand(String command) throws IOException, Interrupt
370355 return new String (output ).trim ();
371356 }
372357
373- /**
374- * Run a limactl command.
375- */
376358 private String runLimaCommand (String ... command ) throws IOException , InterruptedException {
377359 ProcessBuilder pb = new ProcessBuilder (command );
378360 pb .redirectErrorStream (true );
@@ -382,9 +364,6 @@ private String runLimaCommand(String... command) throws IOException, Interrupted
382364 return new String (output ).trim ();
383365 }
384366
385- /**
386- * Get Lima VM logs for debugging.
387- */
388367 private String getLimaLogs () {
389368 try {
390369 return runLimaShellCommand ("sudo journalctl -u docker --no-pager -n 50 2>/dev/null || cat /var/log/docker.log 2>/dev/null || echo 'No logs available'" );
@@ -393,9 +372,6 @@ private String getLimaLogs() {
393372 }
394373 }
395374
396- /**
397- * Wait for Docker to be accessible.
398- */
399375 private boolean waitForDocker () throws InterruptedException {
400376 log .debug ("Waiting for Docker daemon on localhost:{}..." , dockerPort );
401377 long timeoutMillis = TimeUnit .SECONDS .toMillis (120 );
0 commit comments