[Note] I suddenly can't build with Docker for windows.

Can't build

As usual, if you want to use Ubuntu with Dockerfile on Docker for windows, I got an error and couldn't build. I'll look it up, but it didn't come out very often, so I'll leave it as a memorandum. The rough environment is as follows. ・ Windows 10 pro ・ WSL2 (ubuntu18.04) ・ Docker for windows

Build

docker build -f ./Dockerfile -t test .

error


failed to solve with frontend dockerfile.v0: failed to create llb definition: failed to authorize: rpc error: code = unknown desc = failed to fetch anonymous token: get https://auth.docker.io/token?scope=repository%3alibrary%2fubuntu%3apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on [::1]:53: read udp [::1]:37977->[::1]:53: read: connection refused

Solution

Open Docker for windows I changed the settings of Docker Engine as follows and restarted docker and it was cured.

Change before


{
  "registry-mirrors": [],
  "insecure-registries": [],
  "debug": false,
  "experimental": false,
  "features": {
    "buildkit": true
  }
}

After change


{
  "registry-mirrors": [],
  "insecure-registries": [],
  "debug": false,
  "experimental": false
}

The article I referred to is here.

Recommended Posts

[Note] I suddenly can't build with Docker for windows.
(For myself) Build gitlab with ubuntu18.04 + docker for home (Note)
Time shift measures with Docker for Windows
I can't do docker-compose up -d with docker
[Docker for Windows] The Docker app suddenly stopped working ...
[Note] Build a Python3 environment with Docker in EC2
I tried using Docker Desktop for Windows on Windows 10 Home
Build an Android image for Orange Pi 4 with Docker
Build docker environment with WSL
I tried BIND with Docker
Build DynamoDB local with Docker
Try Oracle Enterprise Manager Cloud Control with Docker Desktop for Windows
Build Couchbase local environment with Docker
Build a Node.js environment with Docker
Build a SPA for Laravel 6.2 / Vue.js / Nginx / Mysql / Redis with Docker
Environment construction with Docker for beginners
Build PlantUML environment with VSCode + Docker
I tried to build the environment of PlantUML Server with Docker
I can't install lombok with Gradle.
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Build a development environment for Django + MySQL + nginx with Docker Compose
Build ffmpeg 4.3.1 on Ubuntu for Windows
Build docker + laravel environment with laradock
Build WebRTC Janus with Docker container
Spring Boot gradle build with Docker
Build a web application development environment that uses Java, MySQL, and Redis with Docker CE for Windows
When I tried to build an environment of PHP7.4 + Apache + MySQL with Docker, I got stuck [Windows & Mac]
Build debug environment on container --Build local development environment for Rails tutorial with Docker-
I tried to build a Firebase application development environment with Docker in 2020
I can't build if I set the build destination to a simulator with XCode12!
01. I tried to build an environment with SpringBoot + IntelliJ + MySQL (MyBatis) (Windows10)
Build a local development environment for Rails tutorials with Docker (Rails 6 + PostgreSQL + Webpack)
GraalVM for Java Performance (Windows Developer Build)
I tried running Docker on Windows Server 2019
Build a PureScript development environment with Docker
I tried using Scalar DL with Docker
Install Docker Desktop for Mac with Homebrew
Getting Started with Docker for Mac (Installation)
Introducing Docker Desktop for Windows on WSL2
Build a Wordpress development environment with Docker
[Docker] Build Jupyter Lab execution environment with Docker
Build an environment with Docker on AWS
Build TensorFlow operation check environment with Docker
How to build Rails 6 environment with Docker
[Error resolution] Occurs when trying to build an environment for spring with docker
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Whale and Cat Parent-Child Programming-Try Scratch 3.0's original extension with Docker for Windows.
Build a development environment for Docker + Rails6 + Postgresql
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
I tried using Docker for the first time
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
Self-hosting with Docker of AuteMuteUs in Windows environment
Build a Laravel / Docker environment with VSCode devcontainer
Build a WordPress development environment quickly with Docker
A note for those who live with JMockit
I tried touching Docker for the first time
[Docker for Mac] Deal with Credentials store error
Build a container for Docker x Laravel phpMyAdmin
Docker Container Operations with Docker-Client API for Java
Build a development environment for Docker, java, vscode