LoginSignup
10
8

More than 5 years have passed since last update.

Docker machine(Windows)のVMイメージをCドライブ以外に作成

Last updated at Posted at 2016-04-26

Windowsのdocker-machineはデフォルトで

C:\Users\username.docker\machine\machines

にイメージを作成します。

Cドライブの空き容量が足りない場合、VirtualBoxの設定を変更しても、イメージが作成されるディレクトリはなぜか変わらないので、シンボリックリンクを作成して対応します。(ショートカットでは不可)

管理者権限でコマンドプロンプトを起動し、以下のコマンドを実行すればシンボリックリンクが作成できます。

c:\>mklink /D "C:\Users\username\.docker\machine\machines" "D:\Virtual Machines\machines"
C:\Users\username\.docker\machine\machines <<===>> D:\Virtual Machines\machines の
シンボリック リンクが作成されました

c:\>
10
8
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
10
8