장형이 2020. 12. 30. 17:31

Centos7로 도커를 가지고 놀면서 발생했던 오류 몇개를 정리 해보았다.

 

1. Cannot connect to the Docker daemon

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

 도커 데몬 꺼져있어서 오류발생.

systemctl start docker
- 도커 데몬 켜고
systemctl enable docker
- 도커 데몬 등록

 

2. Permission denied

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/mysql/start: dial unix /var/run/docker.sock: connect: permission denied

sudo 붙여서 명령어 쓰렴.

 

3. Error response from daemon: error parsing HTTP 408 (Timeout)

docker: Error response from daemon: error parsing HTTP 408 response body: invalid character '<' looking for beginning of value: "<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n\n".
See 'docker run --help'.
Using default tag: latest
Error response from daemon: Head https://registry-1.docker.io/v2/library/hello-world/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fhello-world%3Apull&service=registry.docker.io: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

 

여러가지 원인이 있겠지만, 나는 컴퓨터 MTU 낮춰놔서 안되고 있었음.

MTU 원래대로 돌려놓자.

 

 

 

3번 때매 뻘짓을 넘 오래했음 -_-