Enable Docker BuildKit (mac)

Open "Preferences" of Docker for Mac and change the Configure of "Docker Engine" as follows

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

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

After changing, press "Apply & Restart" at the bottom right to reflect

Add the following environment variables to .bashrc or .zshrc

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1

Reboot the shell This will enable BuildKit on docker build and docker-compose build

Recommended Posts

Enable Docker BuildKit (mac)
Steps to run docker on Mac
Try using Redmine on Mac docker
Use Docker on your M1 Mac
Docker For Mac Slow: Countermeasure II
docker
Laravel development environment construction with Docker (Mac)
Install Docker Desktop for Mac with Homebrew
Getting Started with Docker for Mac (Installation)
Enable code completion in Eclipse for Mac
Run Ubuntu + ROS with Docker on Mac