diff --git a/libs/kasm/README.md b/libs/kasm/README.md index 2a383535..884f7ed7 100644 --- a/libs/kasm/README.md +++ b/libs/kasm/README.md @@ -13,23 +13,20 @@ Containerized virtual desktop for Computer-Using Agents (CUA). Utilizes Kasm's M ## Usage -### Building the Container +### Build and Push (multi-arch) + +Use Docker Buildx to build and push a multi-architecture image for both `linux/amd64` and `linux/arm64` in a single command. Replace `trycua` with your Docker Hub username or your registry namespace as needed. ```bash -docker build -t cua-ubuntu:latest . -``` - -### Pushing to Registry - -```bash -# Tag for Docker Hub (replace 'trycua' with your Docker Hub username) -docker tag cua-ubuntu:latest trycua/cua-ubuntu:latest - -# Login to Docker Hub +# Login to your registry first (Docker Hub shown here) docker login -# Push to Docker Hub -docker push trycua/cua-ubuntu:latest +# Build and push for amd64 and arm64 in one step +docker buildx build \ + --platform linux/amd64,linux/arm64 \ + -t trycua/cua-ubuntu:latest \ + --push \ + . ``` ### Running the Container Manually diff --git a/libs/python/computer/computer/providers/docker/provider.py b/libs/python/computer/computer/providers/docker/provider.py index 850300b6..97622a29 100644 --- a/libs/python/computer/computer/providers/docker/provider.py +++ b/libs/python/computer/computer/providers/docker/provider.py @@ -56,7 +56,7 @@ class DockerProvider(BaseVMProvider): image: Docker image to use (default: "trycua/cua-ubuntu:latest") Supported images: - "trycua/cua-ubuntu:latest" (Kasm-based) - - "trycua/cua-docker-xfce:latest" (vanilla XFCE) + - "trycua/cua-xfce:latest" (vanilla XFCE) verbose: Enable verbose logging ephemeral: Use ephemeral (temporary) storage vnc_port: Port for VNC interface (default: 6901) diff --git a/libs/xfce/README.md b/libs/xfce/README.md index 9ecdff00..cd7f2bb1 100644 --- a/libs/xfce/README.md +++ b/libs/xfce/README.md @@ -41,17 +41,20 @@ Vanilla XFCE desktop container for Computer-Using Agents (CUA) with noVNC and co docker build -t cua-docker-xfce:latest . ``` -## Pushing to Registry +### Build and Push (multi-arch) + +Use Docker Buildx to build and push a multi-architecture image for both `linux/amd64` and `linux/arm64` in a single command. Replace `trycua` with your Docker Hub username or your registry namespace as needed. ```bash -# Tag for Docker Hub (replace 'trycua' with your Docker Hub username) -docker tag cua-docker-xfce:latest trycua/cua-docker-xfce:latest - -# Login to Docker Hub +# Login to your registry first (Docker Hub shown here) docker login -# Push to Docker Hub -docker push trycua/cua-docker-xfce:latest +# Build and push for amd64 and arm64 in one step +docker buildx build \ + --platform linux/amd64,linux/arm64 \ + -t trycua/cua-xfce:latest \ + --push \ + . ``` ## Running the Container Manually @@ -108,7 +111,7 @@ from computer import Computer computer = Computer( os_type="linux", provider_type="docker", - image="trycua/cua-docker-xfce:latest", # Use docker-xfce instead of Kasm + image="trycua/cua-xfce:latest", # Use docker-xfce instead of Kasm display="1024x768", memory="4GB", cpu="2" @@ -144,7 +147,7 @@ computer_kasm = Computer( computer_xfce = Computer( os_type="linux", provider_type="docker", - image="trycua/cua-docker-xfce:latest", # docker-xfce image + image="trycua/cua-xfce:latest", # docker-xfce image ) ```