Oxcart ダウンロード
メニュー

MacでAWS ECS、EKS、Fargate、Lambda向けにローカル開発する

AppleシリコンMacでAWSのコンテナワークロードをテストするには、デプロイするものと同じイメージを実行します。ECSとFargateのタスクはComposeプロジェクトとして、LambdaコンテナイメージはAWS内蔵のRuntime Interface Emulatorで、AWS APIはLocalStackで使います。Oxcartはコンテナを42 msで起動し、amd64イメージをRosettaで実行して、反復作業を高速に保ちます。

更新日

どこで何を動かすか

AWSコンテナサービスとOxcartでのローカル代替
AWSサービスローカルでの代替ローカルのワークフロー
ECSタスク、FargateタスクタスクのイメージをDocker Composeで実行ヘルスチェックと公開ポートを使い、サービスをまとめて実行
Lambda(コンテナイメージ)Runtime Interface Emulatorを含むLambdaベースイメージネイティブarm64上でHTTP経由で関数を呼び出す
S3などのAWS APILocalStackS3のバケット・オブジェクト操作をローカルで開発
EKSkubectlとk9sで実際のクラスターへ接続、ローカルAPIにはkwokローカルでビルド・テスト後、kubectlとk9sでクラスターを操作

ECS・FargateタスクをComposeプロジェクトとして動かす

ECSタスク定義は、イメージ、環境、ポートマッピング、ヘルスチェック、起動順序を持つコンテナの一覧です。Composeも同じ内容を定義するため、コンテナ定義ごとに1つのサービスとしてそのまま対応付けられます。

タスク定義のフィールドと対応するCompose設定
タスク定義compose.yaml
imageimage
environment, secretsenvironment、env_file(実際のシークレットはファイルに含めない)
portMappingsports
healthCheckhealthcheck
dependsOnとHEALTHYdepends_onとcondition: service_healthy
runtimePlatform.cpuArchitectureplatform: linux/amd64またはlinux/arm64
services:
  api:
    image: ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/api:1.4.0
    platform: linux/amd64          # match the task's cpuArchitecture
    environment:
      DATABASE_URL: postgres://postgres:dev@db:5432/app
    ports: ["8080:8080"]
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:17-alpine
    environment:
      POSTGRES_PASSWORD: dev
      POSTGRES_DB: app
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]
      interval: 2s
      retries: 30
docker compose up -d --wait     # returns when db is healthy and api has started
curl localhost:8080/health
docker compose down -v

Oxcart上でPostgres 17と、service_healthyで起動を待つnginxサービスを使って検証しました。up --waitは両方が正常になり、公開ポートがlocalhostで応答した状態で戻りました。Macでビルドしたamd64イメージは実行時も同じプラットフォームを指定してください。ローカルのamd64専用イメージは--platform linux/amd64(Composeではplatform:)を設定した場合にだけ見つかります。

Lambdaコンテナイメージをローカルで実行・呼び出す

  1. ハンドラーを書きます。 app.pyを作成し、{"statusCode": 200, "body": "hello"}などの辞書を返すhandler(event, context)関数を定義します。
  2. Dockerfileを書きます。 Runtime Interface Emulatorを含むAWS Lambdaベースイメージから始めます。FROM public.ecr.aws/lambda/python:3.13に続けて、COPY app.py ${LAMBDA_TASK_ROOT}/とCMD ["app.handler"]を指定します。
  3. イメージをビルドします。 docker build -t my-lambda .を実行します。関数がx86_64に設定されている場合は--platform linux/amd64を追加します。
  4. 実行します。 docker run -d -p 9000:8080 my-lambdaを実行します。エミュレーターはコンテナ内のポート8080で待ち受けます。
  5. 呼び出します。 curl -XPOST localhost:9000/2015-03-31/functions/function/invocations -d '{}'を実行します。応答はハンドラーの戻り値で、docker logsには実行時間を含むLambdaのREPORT行が表示されます。

実行時には関数が{"statusCode": 200, "body": "hello from lambda on aarch64"}を返し、コンテナログのLambda REPORT行に実行時間19 msが表示されました。エミュレーターはAWS自身が提供する「LambdaのRuntime APIとExtensions APIのプロキシ」で、/2015-03-31/functions/function/invocationsエンドポイントを立ち上げます。

LocalStackでAWS APIを使う

LocalStackはポート4566の1つのコンテナでAWS APIをエミュレートします。Oxcartでは4.9イメージを実行し、S3を一通り検証しました。

docker run -d --name localstack -p 4566:4566 localstack/localstack:4.9
curl -s localhost:4566/_localstack/health          # s3, lambda, dynamodb… "available"
curl -X PUT localhost:4566/my-bucket               # create a bucket
curl -X PUT --data-binary hello localhost:4566/my-bucket/hello.txt
curl localhost:4566/my-bucket/hello.txt            # hello

利用する前にライセンス条件を確認してください。2026年3月23日以降、最新のLocalStackリリースにはLocalStackアカウントと認証トークンが必要です。LOCALSTACK_AUTH_TOKENがないと、最新イメージは「License activation failed」で終了します。無料のHobbyプランは非商用利用向けで、ECSはBaseプランから、EKSはUltimateプランから利用できます。

ECRにpushしてデプロイする

aws ecr get-login-password --region us-east-1 \
  | docker login --username AWS --password-stdin ACCOUNT.dkr.ecr.us-east-1.amazonaws.com
docker buildx build --platform linux/amd64 --load -t ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/api:1.4.0 .
docker push ACCOUNT.dkr.ecr.us-east-1.amazonaws.com/api:1.4.0

Oxcartはレジストリのパスワードを~/.docker/config.jsonではなくmacOSキーチェーンに保存します。Oxcartからのマルチプラットフォームイメージのpushは未対応です。アーキテクチャごとにタグをpushするか、CIからマルチアーキテクチャマニフェストを公開してください。

MacからEKSを使う

aws eks update-kubeconfig --name my-clusterでクラスターをkubeconfigに追加すると、macOSからkubectlやk9sを使えます。Oxcartでサービスをローカル開発・テストし、同じイメージをEKSにデプロイします。ローカルでマニフェストやコントローラーをテストする場合は、kwokが実際のKubernetes APIサーバーとシミュレートしたノードを提供します。ワークフローの組み合わせ方はMacでKubernetesを使うガイドで説明しています。

ローカルで反復する価値

変更をローカルでテストするたびに、push、デプロイ、ログ探しを省けます。Oxcartならその反復も短くなります。docker run --rmは42 ms、20コンテナの作成・起動は0.69 s、停止・削除は77 msで、テストした3つのランタイムの中で最速でした。コンテナの外向き接続はMacが開くので、AWSネットワークへのVPNも適用されます。

よくある質問

MacでECSやFargateのタスクをローカルテストするには?

Docker Composeでタスクのコンテナを実行します。コンテナ定義ごとにサービスを1つ作り、同じイメージ、環境、ポートマッピング、ヘルスチェック、依存関係を設定します。docker compose up -d --waitは、ヘルスチェックのあるすべてのサービスが正常になると戻ります。Oxcartはヘルスチェックによる依存関係と公開ポートを持つスタックを実行するため、デプロイ前にサービスをまとめて検証できます。

AppleシリコンでAWS Lambdaコンテナイメージをローカル実行できますか?

はい。AWS LambdaベースイメージはRuntime Interface Emulatorを含みます。Oxcartでpublic.ecr.aws/lambda/python:3.13からPython 3.13関数をビルドし、-p 9000:8080で実行してcurlで呼び出すと、arm64でネイティブにHTTP 200を返しました。

LocalStackはOxcartで使えますか?

はい、コンテナとして動きます。LocalStack 4.9イメージを使い、localhost:4566でS3バケットの作成、put、get、listを確認しました。現在のLocalStackリリースにはアカウントと認証トークンが必要で、LOCALSTACK_AUTH_TOKENに設定します。ない場合、最新イメージは終了します。LocalStackの説明では、ECSはBaseプランから、EKSはUltimateプランから利用できます。

MacからAmazon ECRにイメージをpushするには?

aws ecr get-login-password --region REGION | docker login --username AWS --password-stdin ACCOUNT.dkr.ecr.REGION.amazonaws.comでログインし、タグを付けてdocker pushします。Oxcartでは、docker loginがパスワードをmacOSキーチェーンに保存します。

Fargate向けにはamd64とarm64のどちらをビルドすべきですか?

タスク定義のランタイムプラットフォームに合わせます。ARM64ならMacでネイティブarm64イメージをビルドし、X86_64なら--platform linux/amd64でビルドします。OxcartはRosetta経由でamd64イメージをローカル実行できるため、デプロイするものと同じイメージをテストできます。

MacでEKS向けに開発するには?

Oxcartでアプリと依存サービスをローカルでビルド・テストし、イメージをECRにpushします。Mac上のkubectlとk9sでEKSクラスターを操作し、Oxcart上のkwokでローカルKubernetes APIに対してマニフェストを確認します。MacでKubernetesを使うガイドをご覧ください。

出典と測定方法

  • 例はOxcart 0.1.2、Mac17,14、macOS 27.2で2026-10-10にテストしました(Compose、エミュレーター付きLambdaベースイメージ、LocalStack 4.9 S3、Buildx)。
  • LocalStack認証: https://blog.localstack.cloud/localstack-single-image-next-steps/、プラン: https://localstack.cloud/pricing/、ECS: https://docs.localstack.cloud/aws/services/ecs/、EKS: https://docs.localstack.cloud/aws/services/eks/。
  • Lambda Runtime Interface Emulator: https://github.com/aws/aws-lambda-runtime-interface-emulator。AWS SAM CLIとDocker: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-docker.html。ECS Local Container Endpoints: https://github.com/awslabs/amazon-ecs-local-container-endpoints。2026-10-10確認。
  • コンテナの速度:Oxcart 0.1.2、2026-10-10、Apple M5 Max、8 CPU・12 GiB、5回測定の中央値。他のランタイムは同日のそれ以前に、同じMacと測定ハーネスでdocker 29.4クライアントを使って測定しました。

自分のプロジェクトで Oxcart を試す

60 日間無料。その後は 1 つのライセンスで、すべてのアップデートを永続的に利用できます。サブスクリプションではありません。

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でも動作するようになりました。1つのライセンスで、MacとWindowsを自由に組み合わせて最大5台のデバイスで利用できます。
  • すべての更新を、ずっと利用できます。
  • 2026年12月31日まで、Oxcartの価格は$5です。
  • コーディングエージェントがコンテナを調べ、リアルタイムの統計とリソースの逼迫状況を確認し、ログを追跡し、時間のかかるプルやビルドの進行状況を把握し、設定された制限内でコンテナを実行できるようになりました。
  • コンテナを再作成しても、ボリュームとネットワークエイリアスは保持されます。
  • Oxcartのヘルパーが「ログイン項目」にOxcartとして表示されます。
  • 全体的に信頼性を改善しました。

macOS 26.0以降が必要です

Oxcart 0.1.7

共有フォルダとネットワークを高速化。コンテナの環境も編集できます。

  • 共有フォルダを大幅に高速化しました。共有フォルダでのリポジトリのクローン、パッケージのインストール、ビルドが最大3×の速度で行えます。
  • ネットワークを高速化しました。公開ポートとコンテナ接続で、CPU使用量を抑えながら従来の2倍近くのデータを転送できます。
  • 暗号化は必要に応じて。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で動作を確認できます。
  • より的確な回答が得られます。エージェントは、依存先の停止がサービス停止の原因かどうか、Webページが実際に読み込めるかどうか、障害の原因と修正方法を確認できます。
  • 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シリコン向けのDocker互換コンテナ。

  • Docker CLI、Compose、Buildxとの互換性。
  • 実行環境のコンポーネントを同梱し、オフラインでセットアップ可能。
  • プロジェクトとGitブランチごとにポートを整理。
  • デフォルトで読み取り専用のMCP連携。
  • 検証済みの自動アップデート。

macOS 26.0以降が必要です