0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOS 上に Rancher Desktop をインストールしてみました

Last updated at Posted at 2025-06-26

概要

パブリッククラウドのIaaS上のLinuxに Docker Engine を入れて、こそこそと色々やっていますが、やはりローカルにコンテナ環境つくって、そこでもこそこそやってみるか!!! っということでローカル環境に SUSE Rancher Desktop をインストールしてみました。その構築手順となります。

Rancher Desktop はデスクトップ上で コンテナ管理とKubernetesを提供する。 オープンソースのアプリケーションです。

ローカル環境

  • MacBook Pro 16-inch 2019
  • プロセッサ:2.3GHz 8コア Intel Corei9
  • グラフィックス:Intel UHD Graphics 630 1536MB
  • メモリ:32GB 2667MHz DDR4
  • macOS Sequoia 15.5
  • Rancher Desktop v1.19.3

構築手順

1. 以下のコマンドを実行して Rancher Desktop をインストール

$ brew install --cask rancher

2. Rancher Desktopを起動

$ rdctl start   
INFO[0000] About to launch /usr/bin/open -a /Applications/Rancher Desktop.app ... 

必要に応じてCPUとメモリの割当を変更します。今回は、メモリ:10GB、CPU:6 を割り当てました。

3. Docker のステータスを確認

$ docker info  
Client:
 Version:    28.1.1-rd
 Context:    rancher-desktop
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.25.0
    Path:     /Users/ituru/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.37.1
    Path:     /Users/ituru/.docker/cli-plugins/docker-compose

Server:
 Containers: 42
  Running: 21
  Paused: 0
  Stopped: 21
 Images: 24
 Server Version: 27.3.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 207ad711eabd375a01713109a8a197d197ff6542
 runc version: 7cb363254b69e10320360b63fb73e0ffb5da7bf2
 init version: 
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.6.93-0-virt
 Operating System: Alpine Linux v3.21
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 9.722GiB
 Name: lima-rancher-desktop
 ID: 2e0dac53-1c3b-4719-8663-eaf777ea4471
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

4. Rancher Desktop のバージョンを確認

$ rdctl version
rdctl client version: v1.19.3, targeting server version: v1

動作確認

hello-world でコンテナアプリケーションの動作を確認します。

## Dockerイメージのダウンロード
$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
Digest: sha256:940c619fbd418f9b2b1b63e25d8861f9cc1b46e3fc8b018ccfe8b78f19b8cc4f
Status: Image is up to date for hello-world:latest
docker.io/library/hello-world:latest

## Dockerイメージの実行
$ docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

上記メッセージが表示されたので、問題なく環境が構築されました。

Rancher Desktopを停止します

$ rdctl shutdown
Shutting down.

まとめ

自身のMacBookProへサクッと Rancher Desktop をインストールすることができました。ここにDifyを構築してみようかと思います。

参考記事

Rancher Desktop 公式ドキュメント
公式なインストール方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?