> ## Content Index
> Fetch the complete content index at: https://www.popit.kr/llms.txt
> Use this file to discover other available public pages before exploring further.

# Docker 관련 Tip
- URL: https://www.popit.kr/docker-tips/
- Published: 2017-02-07T02:55:24.000Z
- Updated: 2017-02-07T03:24:51.000Z
- Author: 김형준
- Tags: #소프트웨어, 도커, 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](http://stackoverflow.com/questions/39840653/docker-osx-connect-to-a-host-port-from-a-container?ref=popit.kr)
  - 이 경우 다음과 같이 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](https://github.com/phusion/baseimage-docker/issues/319?ref=popit.kr)

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
...
```