Dockerfile 예제 From ubuntu:14.04MAINTAINER Choonho Son ENV DEBIAN_FRONTEND noninteractiveRUN apt-get updateRUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.dRUN apt-get install -y python-pip python-dev gcc expectRUN pip install jeju --upgradeRUN jeju -m orchestra.md docker build -t sunshout/orchestra . docker rmi --force sunshout/orchestra docker login 내용을 수정 후 push 할 때docker commit c5cb8c8fb972 sunshout/orc.. R&D/docker 2016.05.19
docker overlay network vxlan 이론:https://docs.docker.com/engine/userguide/networking/dockernetworks/ You should open the following ports between each of your hosts.ProtocolPortDescriptionudp4789Data plane (VXLAN)tcp/udp7946Control plane @primary manager docker -H :4000 network create multi-host-network docker -H :4000 network create --driver overlay --subnet=10.0.9.0/24 my-net [ec2-user@ip-172-31-1-73 ~]$ docker -H :4000 net.. R&D/docker 2016.05.19
iptables iptables 를 활용한 port forwarding iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 192.0.2.2 iptables -t nat -A PREROUTING -i em1 -p tcp --dport 8082 -j DNAT --to 192.168.0.83:80 R&D/OS 2016.03.15
Ubuntu apt mirror 만들기 참고:http://linoxide.com/ubuntu-how-to/setup-local-repository-ubuntu/ R&D/클라우드 2016.03.11
docker environment 전달 { ..., "container": { "docker": { ... "parameters": [ { "key": "hostname", "value": "a.corp.org" }, ..., ] }, "type": "DOCKER", "volumes": [] }, ... } docker 생성시 key=value 환경 변수를 container 에게 전달할 때 사용 R&D/docker 2016.02.02
CentOS systemctl 에서 disabled 된 서비스를 enable 하기 CentOS 계열에서는 service xxx start 대신에 systemctl start xxx.service 형태로 변경되었다. systemctl start xxx.service 를 실행 했을 때 서비스가 시작되지 않을 때는 여러가지 원인이 있다. systemctl status xxx.service 를 하면 현재 상태를 볼 수 있다.예를 들어 아래 svnserve 를 실행했지만, 서비스가 실행되지 않았다. 상태를 파악하기 위해서 status 를 실행해 보면 "disabled, vendor preset:disabled 라는 로그를 볼 수 있다. [root@cnode01-m etc]# systemctl start svnserve.serviceJob for svnserve.service failed bec.. R&D/클라우드 2016.01.11
docker 관련 추가 공부 할 것 docker compose http://rancher.com/docker-based-build-pipelines-part-1-continuous-integration-and-testing/http://rancher.com/deploying-a-scalable-jenkins-cluster-with-docker-and-rancher/ R&D/docker 2016.01.07