-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Getting error:
ImageError Traceback (most recent call last)
Cell In[3], line 1
----> 1 vm = SmolVM()
File ~/Projects/celesto/SmolVM/src/smolvm/facade.py:159, in SmolVM.__init__(self, config, vm_id, data_dir, socket_dir, backend, mem_size_mib, disk_size_mib, ssh_user, ssh_key_path)
156 image_name = f"{image_name}-{resolved_disk_size_mib}m"
158 # This will download/build if needed (cached otherwise)
--> 159 kernel, rootfs = builder.build_alpine_ssh_key(
160 pub_key,
161 name=image_name,
162 rootfs_size_mb=resolved_disk_size_mib,
163 )
165 # 3. Create Config
166 # Use a unique ID to avoid conflicts with previous runs
167 auto_id = f"vm-{uuid.uuid4().hex[:8]}"
File ~/Projects/celesto/SmolVM/src/smolvm/build.py:242, in ImageBuilder.build_alpine_ssh_key(self, ssh_public_key, name, rootfs_size_mb, kernel_url)
230 """Build Alpine Linux image with key-only SSH access.
231
232 Args:
(...) 239 Tuple of (kernel_path, rootfs_path).
240 """
241 if not self.check_docker():
--> 242 raise ImageError(
...
245 )
247 key_value = self._resolve_public_key(ssh_public_key)
249 image_dir = self.cache_dir / name
ImageError: Docker is required to build images. Install Docker Desktop (macOS) or docker.io (Linux).
Steps to reproduce
from smolvm import SmolVM
vm = SmolVM()Expected behavior
It should run out of the box or if the docker desktop is not running then the error messaging should be clearer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working