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?

More than 3 years have passed since last update.

DockerのBuildKitを有効化する (mac)

Posted at

Docker for Macの「Preferences」を開き、「Docker Engine」のConfigureを以下のように変更する

{
  "debug": true,
  "experimental": true,
  "features": {
    "buildkit": true
  }
}

スクリーンショット 2020-10-10 23.43.07.png

変更したら右下の「Apply & Restart」を押して反映する

.bashrcもしくは.zshrcに以下の環境変数を追加する

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1

シェルを再起動する
これでdocker build及びdocker-compose buildでBuildKitが有効になる

0
0
1

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?