Docker 관련 Tip
이 글은 Docker 관련 작업 하면서 조금씩 발견하는 간단한 Tip을 정리할 예정이며 계속 업데이트 할 예정입니다.
- OSX에서 Docker Container에서 Host OS의 특정 Port(MySQL)에 접근하기
- OSX에서 Docker daemon 을 실행하면 기본적으로는 docker container에서 Host OS의 특정 Port에 접근할 수 없다.
- http://stackoverflow.com/questions/39840653/docker-osx-connect-to-a-host-port-from-a-container
- 이 경우 다음과 같이 loopback에 추가 IP를 부여하면 된다.
sudo ifconfig lo0 alias 10.8.8.8 netmask 255.255.255.255 up - Dockerfile에 "ENV DEBIAN_FRONTEND noninteractive" 추가
- https://github.com/phusion/baseimage-docker/issues/319
Docker Image Build 중 다음과 같은 경고 메시지가 나타나는 경우
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
...