도커 (1)
docker-compose up 빌드 오류 발생 시 해결 방법

ERROR: Service 'app' failed to build: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:43602->10.0.2.3:53: i/o timeout

도커에서 기동시 위와 같은 오류가 날 경우 아래와 같이 입력 후 기동을 한다


$ docker-machine restart default
$ eval $(docker-machine env default)


$ docker-compose.exe up
Building app
Step 1/5 : FROM openjdk:10.0.1-jdk
ERROR: Service 'app' failed to build: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: read udp 10.0.2.15:43602->10.0.2.3:53: i/o timeout

$ docker-machine restart default
Restarting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Waiting for SSH to be available...
Detecting the provisioner...
Restarted machines may have new IP addresses. You may need to re-run the `docker-machine env` command.

$ eval $(docker-machine env default)

$ docker-compose.exe up
Building app
Step 1/5 : FROM openjdk:10.0.1-jdk
10.0.1-jdk: Pulling from library/openjdk
e367ac4072dc: Pull complete
9a57779b5dba: Pull complete
7a4c28c5ff25: Pull complete
9a8bf5e9a1f1: Pull complete
0e45f9a301ef: Pull complete
70656c3c9396: Pull complete
e1eb305208da: Pull complete
e022358c7c3e: Pull complete


0  Comments,   0  Trackbacks
댓글 쓰기