mirror of
https://github.com/trycua/computer.git
synced 2026-04-28 11:10:17 -05:00
Add multiplatform build docs, fix incorrect image name
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user