docker 컨테이너 외부노출

    도커 컨테이너 다루기(2) - 컨테이너 외부 노출

    컨테이너는 VM과 마찬가지로 Virtual IP를 할당 받습니다. 도커는 기본적으로 172.17.0.x 의 IP를 순차적으로 할당합니다. 컨테이너 생성 후 네트워크 인터페이스를 확인해보면 다음과 같습니다. [root@localhost ~]# docker run -t -i --name network_test ubuntu:18.04 Unable to find image 'ubuntu:18.04' locally 18.04: Pulling from library/ubuntu 4bbfd2c87b75: Pull complete d2e110be24e1: Pull complete 889a7173dcfe: Pull complete Digest: sha256:04919776d30640ce4ed24442d5f7c1a8e4b..