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?

Docker DesktopからRancher Desktopへ

Posted at

Docker Desktopをこれまで使って来ましたが、費用がかかっていたので無料で使えるRancher Desktopを導入してみました。
少し手こずったところがあって解決できたので、誰かのお役に立てれば幸いです。

Docker Desktopをアンインストール

こちらでアンインストールします。

/Applications/Docker.app/Contents/MacOS/uninstall

Rancher Desktopをインストール

brew install --cask rancher

上記でするか、こちらでインストールしてください。
私はm3 macなのでApple Silliconをインストールしました。
https://rancherdesktop.io/

設定

インストールが終わったら、Rancher Desktopを起動します。
dockerd(moby)
Automatic
を選択(デフォルトのまま)

次をOKで進めまると起動完了します。

詰まった部分と解決方法

これで、起動できると思いpycharmに設定している起動スクリプトを実行すると、

ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

と出てきました。
確認していきます。

$docker context ls

でrancher-desktopにアスタリスク(*)がなかったら

$unset DOCKER_HOST

でアスタリスクが移動すると思います。
次に、
Rancher Desktopの設定で、Preferences > Appliction > Behavior の、

  • Automatically start at login
  • Start in the background
    にチェックを入れてApplyをクリック

これで無事実行できるようになりました。
めでたく移行完了!🎊

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?