Never mind. I found there’s another post which talks about this. Since I have Docker Desktop for macOS installed, this worked for me.
Before
{
"debug": true,
"experimental": false
}
After
{
"debug": true,
"experimental": false,
"features": {
"buildkit": false
}
}