Add multiplatform build docs, fix incorrect image name

This commit is contained in:
Dillon DuPont
2025-10-14 11:36:41 -04:00
parent c3de071bd5
commit d8edc3bb51
4 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ Cua provides two Docker images for running Linux desktops:
2. Pull the CUA XFCE image
```bash
docker pull --platform=linux/amd64 trycua/cua-xfce:latest
docker pull --platform=linux/amd64 trycua/cua-docker-xfce:latest
```
3. Connect with Computer
@@ -74,7 +74,7 @@ Cua provides two Docker images for running Linux desktops:
computer = Computer(
os_type="linux",
provider_type="docker",
image="trycua/cua-xfce:latest",
image="trycua/cua-docker-xfce:latest",
name="my-xfce-container"
)
+1 -1
View File
@@ -47,7 +47,7 @@ Choose how you want to run your cua computer. **Cloud Sandbox is recommended** f
2. Pull the CUA XFCE container (lightweight desktop)
```bash
docker pull --platform=linux/amd64 trycua/cua-xfce:latest
docker pull --platform=linux/amd64 trycua/cua-docker-xfce:latest
```
Or use KASM for a full-featured desktop:
+10 -13
View File
@@ -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
+10 -7
View File
@@ -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-docker-xfce:latest \
--push \
.
```
## Running the Container Manually