Oxcart 다운로드
메뉴

Mac에서 Google Cloud Run 컨테이너를 로컬로 실행하고 테스트하기

Apple Silicon Mac에서 Cloud Run 서비스를 테스트하려면 linux/amd64용으로 빌드하고 PORT 변수와 함께 실행하세요: docker run -e PORT=8080 -p 8080:8080 IMAGE. Oxcart에서는 자체 서비스와 Google의 Cloud Run 샘플 모두 이 방식으로 작동했고, amd64 이미지는 Rosetta를 통해 실행됐습니다. 따라서 배포할 이미지와 정확히 같은 이미지를 테스트할 수 있습니다.

업데이트

Cloud Run의 컨테이너 실행 요구 사항

Cloud Run은 몇 가지 요구 사항을 따르는 컨테이너를 실행합니다. Google 문서에 따르면 요청은 기본적으로 포트 8080으로 전달되고, 인그레스 컨테이너에 PORT 환경 변수가 설정됩니다. 컨테이너는 “0.0.0.0에서 요청을 수신해야” 하며 “127.0.0.1에서 수신해서는 안 됩니다”. 또한 Cloud Run은 “구체적으로 Linux x86_64 ABI 형식을 지원”하며, 다중 아키텍처 이미지에는 linux/amd64가 포함되어야 한다고 명시합니다.

이 중 두 규칙이 Mac 개발자에게 자주 문제를 일으킵니다. localhost에 바인딩한 앱은 로컬 터미널에서 작동해도 Cloud Run에서는 실패하고, Apple Silicon에서 네이티브로 빌드한 이미지는 arm64입니다. 실제 컨테이너를 로컬에서 테스트하면 배포 전에 두 문제를 모두 발견할 수 있습니다.

Apple Silicon에서 Cloud Run 서비스 로컬 테스트하기

  1. $PORT와 0.0.0.0에서 수신하세요. 서버가 PORT 환경 변수를 읽도록 하고 (Cloud Run은 기본적으로 8080에 요청을 보냅니다), 127.0.0.1이 아닌 0.0.0.0에 바인딩하세요.
  2. linux/amd64용으로 빌드하세요. docker buildx build --platform linux/amd64 --load -t my-service .를 실행하세요. Cloud Run은 Linux x86_64 ABI를 지원하므로 Mac에서 네이티브로 빌드한 arm64 이미지는 대상 아키텍처가 맞지 않습니다.
  3. Cloud Run과 같은 방식으로 실행하세요. docker run --rm --platform linux/amd64 -e PORT=8080 -p 8080:8080 my-service를 실행하세요. Oxcart는 amd64 이미지를 Rosetta로 실행합니다.
  4. 서비스를 호출하세요. curl localhost:8080를 실행하세요. PORT 처리를 확인하려면 -e PORT=9090 -p 9090:9090으로 두 번째 인스턴스를 시작하세요.
  5. Artifact Registry로 푸시하세요. gcloud auth configure-docker REGION-docker.pkg.dev를 한 번 실행하고, 이미지에 REGION-docker.pkg.dev/PROJECT/REPO/my-service:TAG 태그를 붙인 뒤 docker push로 보내세요.

Oxcart에서 실행한 항목

$PORT에 바인딩하는 작은 Python 서비스를 서로 다른 포트로 두 번 실행했고, Google 자체 샘플 이미지도 실행했습니다.

docker run -d -e PORT=8080 -p 18081:8080 my-service
docker run -d -e PORT=9090 -p 18090:9090 my-service
curl localhost:18081        # hello from PORT=8080
curl localhost:18090        # hello from PORT=9090

docker run -d -e PORT=8080 -p 8081:8080 us-docker.pkg.dev/cloudrun/container/hello
docker image inspect us-docker.pkg.dev/cloudrun/container/hello --format '{{.Os}}/{{.Architecture}}'
# linux/amd64
curl localhost:8081         # "It's running!"

Google 샘플은 amd64 전용 이미지입니다. Oxcart는 추가 플래그 없이 이를 내려받아 Rosetta로 실행했습니다. 직접 빌드한 amd64 전용 이미지에는 docker run에도 --platform linux/amd64를 전달하세요. 테스트에서 로컬로 빌드한 amd64 이미지는 플랫폼을 지정했을 때만 찾을 수 있었습니다.

Apple Silicon에서 linux/amd64용 빌드하기

# Cloud Run target: amd64
docker buildx build --platform linux/amd64 --load -t my-service:amd64 .

# Both architectures in the local image store (runs locally either way)
docker buildx build --platform linux/amd64,linux/arm64 -t my-service:multi .

Oxcart의 기본 빌더는 linux/amd64와 linux/arm64를 모두 표시하며, 다중 플랫폼 빌드는 로컬에서 완료되고 두 변형 모두 실행할 수 있습니다. Oxcart에서 다중 플랫폼 이미지를 푸시하는 것은 지원되지 않으므로 Cloud Run에는 실제로 실행되는 amd64 태그를 푸시하세요. 작은 로컬 컨텍스트의 빌드는 캐시 없이 341 ms, 캐시를 사용하면 121 ms로, 테스트한 세 런타임 중 가장 빨랐습니다.

Artifact Registry로 푸시하고 배포하기

gcloud auth configure-docker us-central1-docker.pkg.dev
docker tag my-service:amd64 us-central1-docker.pkg.dev/my-project/apps/my-service:1.0.0
docker push us-central1-docker.pkg.dev/my-project/apps/my-service:1.0.0
gcloud run deploy my-service \
  --image us-central1-docker.pkg.dev/my-project/apps/my-service:1.0.0 --region us-central1

Compose로 의존 서비스 실행하기

Cloud Run 서비스는 보통 데이터베이스, 캐시 또는 다른 서비스와 통신합니다. Compose로 함께 실행하고, 서비스 환경에 PORT를 설정하고, 상태 검사로 시작 순서를 제어하세요.

services:
  api:
    build: .
    platform: linux/amd64
    environment:
      PORT: "8080"
      REDIS_URL: redis://cache:6379
    ports: ["8080:8080"]
    depends_on:
      cache:
        condition: service_healthy
  cache:
    image: redis:7-alpine
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 2s
      retries: 30

docker compose up -d --wait는 캐시가 정상이고 API가 시작되면 반환됩니다. Apple Silicon의 Compose 가이드에서 상태 검사, amd64 이미지, 포트를 자세히 설명합니다.

Mac의 포트

게시한 포트는 Docker 기본 동작과 같이 Mac의 모든 인터페이스에서 수신합니다. 다른 Mac 앱이 이미 127.0.0.1:8080에서 수신 중이면 localhost:8080이 컨테이너 대신 그 앱에 연결될 수 있습니다. 비어 있는 호스트 포트(-p 18080:8080)를 선택하고 PORT는 Cloud Run이 설정하는 값으로 유지하세요. Oxcart의 Ports 뷰는 컨테이너 옆에 Mac의 모든 수신 서비스를 표시하고 컨테이너 포트가 응답하지 않는 이유를 설명합니다. 컨테이너 내부 서버가 127.0.0.1에 바인딩된 경우도 포함하며, 이는 Cloud Run에서도 거부하는 같은 오류입니다. Mac의 컨테이너 네트워킹을 참고하세요.

질문

Mac에서 Cloud Run 서비스를 로컬로 실행하려면 어떻게 하나요?

PORT 변수를 설정하고 포트를 게시해 컨테이너를 실행하세요: docker run -e PORT=8080 -p 8080:8080 IMAGE. Google이 Docker 로컬 테스트용으로 문서화한 방법입니다. Oxcart에서는 자체 이미지를 8080과 9090 포트에서, Google의 us-docker.pkg.dev/cloudrun/container/hello 샘플과 함께 검증했습니다.

Apple Silicon에서 빌드한 이미지로 Cloud Run 배포가 실패하는 이유는 무엇인가요?

Google 문서는 Cloud Run이 Linux x86_64 ABI를 지원하고 다중 아키텍처 이미지에 linux/amd64가 포함되어야 한다고 설명합니다. Apple Silicon Mac에서 일반적인 docker build는 arm64 이미지를 만듭니다. --platform linux/amd64로 빌드하세요.

배포 전에 Mac에서 amd64 이미지를 실행할 수 있나요?

네. Oxcart는 linux/amd64 이미지를 Rosetta로 실행합니다. 로컬에서 직접 빌드한 amd64 전용 이미지를 실행할 때는 --platform linux/amd64를 전달하세요. Google의 hello 샘플처럼 내려받은 amd64 이미지는 테스트에서 이 옵션 없이 실행됐습니다.

컨테이너가 로컬에서는 작동하지만 Cloud Run은 포트를 수신하지 못했다고 합니다. 왜 그런가요?

가장 흔한 원인은 127.0.0.1 또는 코드에 고정된 포트에 바인딩하는 것입니다. Cloud Run 요구 사항에 따르면 컨테이너는 0.0.0.0에서 PORT의 포트를 수신해야 합니다. 기본값이 아닌 PORT(예: 9090)로 로컬 테스트해 코드에 고정된 포트를 찾으세요.

gcloud beta code dev나 Cloud Code가 필요한가요?

아니요, 선택 사항입니다. Google은 일반 Docker, Google Cloud 접근 권한이 있는 Docker, Cloud Code 에뮬레이터, gcloud beta code dev를 로컬 테스트 방법으로 안내합니다. Oxcart의 Docker로 이미지와 PORT 처리를 직접 테스트할 수 있습니다. gcloud beta code dev는 minikube나 기존 Kubernetes 컨텍스트를 사용하는 개발 흐름을 추가합니다. 해당 통합이 필요할 때 선택하세요.

로컬 컨테이너에 Google Cloud API 접근 권한을 주려면 어떻게 하나요?

Google의 ‘Google Cloud 접근 권한이 있는 Docker’ 문서에 따라 인증 정보를 마운트하세요. 보통 마운트한 파일과 GOOGLE_APPLICATION_CREDENTIALS를 통해 Application Default Credentials를 전달합니다. Oxcart 컨테이너의 외부 연결은 Mac이 열기 때문에 Mac의 VPN과 DNS가 적용됩니다.

출처와 방법

  • 예제 테스트 환경: Oxcart 0.1.2, Mac17,14, macOS 27.2, 2026-10-10 (PORT 8080과 9090, Google hello 샘플을 linux/amd64로 실행, Buildx 단일 및 다중 플랫폼 빌드).
  • Cloud Run 컨테이너 요구 사항(포트, 0.0.0.0, x86_64): https://docs.cloud.google.com/run/docs/container-contract. 로컬 테스트 옵션: https://docs.cloud.google.com/run/docs/testing/local 및 https://docs.cloud.google.com/sdk/gcloud/reference/beta/code/dev. 2026-10-10에 확인했습니다.
  • 빌드 속도: Oxcart 0.1.2, 2026-10-10, Apple M5 Max, CPU 8개와 12 GiB, 5회 표본의 중앙값. 다른 런타임은 같은 날 더 이른 시간에 같은 Mac과 측정 도구에서 docker 29.4 클라이언트로 측정했습니다.

직접 진행하는 프로젝트에서 Oxcart를 사용해 보세요

60일간 무료. 이후 라이선스 하나로 모든 업데이트를 평생 제공합니다. 구독이 아닙니다.

Apple silicon 탑재 Mac · Windows 11 (x64)

다음 글

릴리스 노트

Oxcart 26.11.6

최신 릴리스

Containers see the changes you make to files on your Mac as they happen.

  • Edit a file in a shared folder on your Mac, and tools that watch it in a container, such as Vite, webpack and nodemon, reload right away. Polling is not needed.
  • When no containers are running and you haven't used Docker for two minutes, Oxcart gives the memory it was using back to macOS. The next docker command starts it again in under a second. This doesn't happen while Kubernetes is turned on.
  • You can bring your images, volumes and networks over from another Docker app. Choose Import from Another Runtime… in the More (…) menu on the Containers page, or run oxcart import. Containers themselves aren't copied: start them again with docker compose up -d or docker run, and they use the imported volumes and networks.
  • Bug fixes and optimizations.
  • Updated Linux and system components, with the latest security fixes. A Windows virtual machine that is suspended when you update starts fresh afterwards.

macOS 26.0 이상 필요

Oxcart 26.11.5

You can now turn on GPU acceleration for a Windows 11 virtual machine you already have.

  • Open the virtual machine's settings and turn on GPU acceleration under Display. Oxcart restarts Windows once, and the Windows desktop and Direct3D 10 and 11 apps then render on your Mac's GPU.
  • Turning GPU acceleration off puts back the standard display driver, and suspending works again.

macOS 26.0 이상 필요

Oxcart 26.11.4

Bug fixes and optimizations.

  • Virtual machines start again after updating Oxcart while it is open.

macOS 26.0 이상 필요

Oxcart 26.11.3

Windows virtual machines can now use your Mac's GPU.

  • Turn on GPU acceleration when you create a Windows 11 virtual machine, on the first step of New Virtual Machine. The Windows desktop and Direct3D 10 and 11 apps then render on your Mac's GPU instead of its processor.
  • A virtual machine with GPU acceleration can't be suspended or snapshotted while it runs. Shut it down instead. Existing virtual machines are not changed.
  • GPU acceleration is new. After a lot of opening and closing windows, the Windows screen can go black for about a second while Oxcart frees graphics memory.
  • Updated Linux and system components, with the latest security fixes.

macOS 26.0 이상 필요

Oxcart 26.11.2

Oxcart can now run Kubernetes for you.

  • Turn on Kubernetes in Settings › Resources to get a local single-node cluster that kubectl can use right away.
  • Services in the cluster are reachable from your Mac at 127.0.0.1, and images you build with Docker run in the cluster without pushing them to a registry.
  • Updated Linux and system components, with the latest security fixes.

macOS 26.0 이상 필요

Oxcart 26.11.1

Bug fixes and optimizations.

  • A simpler toolbar in the VM window.
  • Updated Linux and system components, with the latest security fixes.

macOS 26.0 이상 필요

Oxcart 26.11.0

Clearer Windows audio, a network that comes back, and a VM toolbar that stays out of your way.

  • Clear Windows audio. Choppy, garbled sound in Windows VMs is fixed.
  • Networking that recovers. Turn a Windows VM's network off and on again, and it reconnects without a restart.
  • A toolbar that stays out of the way. It no longer covers the top of your VM. Move the pointer to the top center and click the small tab when you want it.
  • Simpler Oxcart Tools for Windows. One CD now holds everything, and the installer handles the drivers and any restart for you.
  • A more dependable clipboard in Windows VMs.
  • A license agreement to accept the first time you open Oxcart on your Mac.
  • Updated Linux, container and Docker components, with the latest security fixes.

macOS 26.0 이상 필요

Oxcart 26.10.0

Virtual machines are here. Windows 11, Linux and macOS run on your Mac, built into Oxcart beside your containers and covered by the license you already have.

  • Windows 11 in about 5 minutes, hands off. Choose your Windows 11 ARM installer and walk away: Oxcart installs Windows, its drivers and Oxcart Tools by itself, on a VM with real TPM 2.0 and Secure Boot. You bring the installer and the license.
  • Linux in under a minute. Ubuntu, Debian and Fedora start with your Mac username, your SSH key and passwordless sudo already set up; Fedora is ready in about 30 seconds. Every further VM from the same image starts from an instant copy that takes only the space it changes. Ubuntu Desktop, Fedora Workstation and any arm64 Linux installer work too.
  • macOS on macOS. Oxcart restores the newest macOS your Mac supports and, with Automatic setup, creates your account and installs Oxcart Tools.
  • Every VM is a real Mac app. Each one has its own window, Dock icon and ⌘-Tab entry, and keeps running after you quit Oxcart. The Retina display follows the window as you resize it or go full screen, ⌘C and ⌘V work in Linux and Windows, and text, images and files move between your Mac and the guest by copy, paste and drag.
  • Snapshots that capture the moment. Snapshot a running VM with its open apps and return to that exact moment later. Snapshots and clones take almost no space until the guest changes, and a restore lands whole even if your Mac loses power halfway.
  • Your Mac's folders, network and USB. Share Mac folders with any guest, reach your Mac by name and publish ports from the VM. Hand a USB device to Windows for flashers, programmers and dongles; development boards' serial ports show up in Windows under their own IDs.
  • First-class for coding agents. VMs join containers in Oxcart's MCP server with 22 tools of their own, so an agent you connect can create, start, snapshot and clone VMs, run commands and copy files in the guest, forward ports, connect USB devices and disk images, and read the screen and type in any guest, even one without Oxcart Tools, all within the permission level you set for each agent. The oxcart vm command covers every operation, with JSON output for scripts and CI.
  • Encrypted VMs, when you want them. Keep a VM's disks and secrets behind a password of your own, with AES-256 encryption built into Oxcart, so an encrypted disk flushes as fast as a plain one.
  • Disk space you can see. Choose where a VM lives, on your Mac or an external drive, and see what it takes now and what it can grow to against the space you have. Reclaim Space hands back what a guest frees right away, and Disk Usage shows each downloaded system so you can remove the ones you no longer need.
  • VMs that move with you. Each VM is a single item in Finder you can keep on any drive. Export it as one .oxvm file to another Mac, and bring over Linux and macOS VMs from another Mac virtualization app.
  • Ready when you are. Chosen VMs start when you log in, run headless with no window at all, and suspend when you close them, so you pick up exactly where you left off.
  • Oxcart Help. Help › Oxcart Help (⌘?) explains every setting, what it does and what changing it affects, with a ? beside each one. Coding agents read the same help through MCP.
  • More reliable published ports. A container connection that a service closes mid-transfer now ends cleanly instead of waiting.
  • New version numbers. Releases are now numbered by year and month, so this one is 26.10.0.

macOS 26.0 이상 필요

Oxcart 0.1.8

Oxcart가 Windows를 지원하며, 모든 업데이트가 평생 포함됩니다.

  • Oxcart를 Windows에서도 실행할 수 있습니다. 라이선스 하나로 Mac과 Windows를 자유롭게 조합해 최대 5대의 기기에서 사용할 수 있습니다.
  • 모든 업데이트가 평생 포함됩니다.
  • 2026년 12월 31일까지 Oxcart 가격은 $5입니다.
  • 코딩 에이전트가 컨테이너를 검사하고, 실시간 통계와 리소스 압박 상태를 확인하고, 로그를 살펴보고, 오래 걸리는 이미지 풀과 빌드의 진행 상황을 추적하고, 사용자가 설정한 제한에 따라 컨테이너를 실행할 수 있습니다.
  • 컨테이너를 다시 생성해도 볼륨과 네트워크 별칭이 유지됩니다.
  • Oxcart의 보조 프로그램이 로그인 항목에 Oxcart로 표시됩니다.
  • 전반적인 안정성을 개선했습니다.

macOS 26.0 이상 필요

Oxcart 0.1.7

더 빨라진 공유 폴더와 네트워크, 편집할 수 있는 컨테이너 환경을 제공합니다.

  • 공유 폴더가 훨씬 빨라졌습니다. 공유 폴더에서 저장소를 복제하고, 패키지를 설치하고, 빌드하는 속도가 최대 3×로 향상되었습니다.
  • 네트워크가 빨라졌습니다. 게시된 포트와 컨테이너 연결에서 CPU 사용량은 줄이면서 거의 두 배의 데이터를 전송할 수 있습니다.
  • 필요할 때 암호화를 사용하세요. Mac과 컨테이너 사이의 트래픽 암호화는 선택 사항입니다. Settings › Resources › Encrypt container connections에서 켤 수 있습니다.
  • 환경 변수를 쉽게 확인하고 변경할 수 있습니다. 컨테이너의 Overview에서 변수를 확인하고, Edit and Recreate로 변경하고, .env 파일 전체를 한 번에 붙여 넣을 수 있습니다.
  • Run Container 시트 사용이 더 편리해졌습니다. Return 키를 누르면 컨테이너를 시작하는 대신 다음 행으로 이동합니다.
  • 문제 해결이 더 명확해졌습니다. VPN이나 방화벽으로 인해 연결이 느려지면 Oxcart가 알려 줍니다.
  • 공유 폴더의 안정성을 개선했습니다. 권한 오류를 올바르게 보고하고, Mac에서 변경한 내용을 최신 상태로 반영합니다.

macOS 26.0 이상 필요

Oxcart 0.1.6

코딩 에이전트가 발견한 문제를 해결할 수 있습니다. 전반적인 오류 수정과 보안 강화도 이루어졌습니다.

  • 새로 추가한 에이전트는 Mac에 이미 있는 이미지를 사용해 컨테이너를 시작, 중지, 재시작하고, 컨테이너 안에서 명령을 실행하고, Compose 프로젝트를 시작할 수 있습니다. 이미지 풀, 빌드, 삭제에는 Full 권한이 필요하며, MCP Integrations에서 에이전트별로 설정할 수 있습니다.
  • 설정 과정에서 에이전트마다 바로 사용할 수 있는 설정 항목이 제공되며, oxcart mcp check로 작동 여부를 확인할 수 있습니다.
  • 더 정확한 답변을 제공합니다. 에이전트가 의존 대상의 중단으로 서비스가 중단되었는지, 웹 페이지가 실제로 로드되는지, 오류의 원인과 해결 방법이 무엇인지 확인할 수 있습니다.
  • Start at login을 켜면 로그인 시 Oxcart가 메뉴 막대에서 열려 필요할 때 바로 사용할 수 있습니다.
  • Oxcart는 시작할 때 업데이트를 확인하고 oxcart.cc에 간단한 체크인 요청을 보냅니다. Settings › Privacy에서 전송 내용을 정확히 확인할 수 있습니다.
  • 컨테이너가 시작 직후부터 같은 네트워크에 있는 다른 서비스를 찾을 수 있습니다.
  • 특권 컨테이너, Rosetta 검사, 설정 과정의 보호 조치와 관련된 문제를 수정했습니다.
  • Oxcart 앱은 데이터를 삭제하거나 실행 중인 작업을 중지하는 모든 동작에 앞서 확인을 요청합니다.
  • 전반적인 보안 강화와 안정성 개선을 적용했습니다.

macOS 26.0 이상 필요

Oxcart 0.1.5

Oxcart에서 로컬 Kubernetes와 특권 컨테이너를 실행할 수 있으며, 10개 언어를 지원합니다.

  • Settings › Resources › Kubernetes and networking에서 특권 컨테이너를 켜면 kind, k3d, minikube(Docker 드라이버), Docker-in-Docker를 실행하고 docker run --privileged와 --device를 사용할 수 있습니다. 기본적으로 꺼져 있습니다. Oxcart의 보호 기능은 모든 컨테이너가 Oxcart의 디스크, 커널, 다른 컨테이너의 데이터, Mac과의 통신 채널에 접근하지 못하도록 합니다.
  • IPv6 컨테이너 네트워크를 지원합니다. 이 기능도 기본적으로 꺼져 있으며, kind의 듀얼 스택 네트워크처럼 IPv6를 사용해 생성한 네트워크에 사용할 수 있습니다.
  • Oxcart가 중국어 간체, 일본어, 독일어, 프랑스어, 스페인어, 브라질 포르투갈어, 한국어, 러시아어, 튀르키예어로 번역되었습니다. Settings › General › Language의 설정은 Oxcart에만 적용됩니다.

macOS 26.0 이상 필요

Oxcart 0.1.4

라이선스 기능 및 개선 사항.

  • 안전한 이메일 링크를 통한 라이선스 활성화.
  • Settings에서 라이선스와 Mac 관리.
  • 오프라인 라이선스 검증.
  • 성능 및 UI 개선, 버그 수정.

macOS 26.0 이상 필요

Oxcart 0.1.3

유휴 상태에서 메모리 회수.

  • 실행 중인 컨테이너가 없을 때 VM 메모리 회수.
  • 컨테이너, 이미지, 볼륨, 네트워크 유지.

macOS 26.0 이상 필요

Oxcart 0.1.2

명령줄 도구 통합.

  • Oxcart에 포함된 Docker 도구와 기존에 설치된 Docker 도구 간 전환.
  • UI 개선.

macOS 26.0 이상 필요

Oxcart 0.1.1

Docker 도구 포함 및 에이전트 제어.

  • Docker CLI 29.9, Compose 5.6, Buildx 0.38 포함.
  • Docker 컨텍스트 통합 및 키체인을 통한 안전한 자격 증명 보관.
  • MCP 에이전트 연결 및 에이전트별 권한 설정과 차단.

macOS 26.0 이상 필요

Oxcart 0.1.0

Apple Silicon용 Docker 호환 컨테이너.

  • Docker CLI, Compose, Buildx 호환.
  • 런타임 구성 요소를 포함한 오프라인 설정.
  • 프로젝트와 Git 브랜치별 포트 정리.
  • 기본적으로 읽기 전용 접근을 제공하는 MCP 통합.
  • 검증을 거치는 자동 업데이트.

macOS 26.0 이상 필요