Docker shared network Docker 간에 네트워크를 공유하는 방법 1) docker #1 생성 docker run -ti --name test1 ubuntu /bin/bash 2) docker #2 생성 - network namespace 공유 docker run -ti --name test2 --net=container:test1 ubuntu /bin/bash R&D/docker 2019.05.03
devops gitlab 설치 docker -H :4000 run -d --publish 80:80 --publish 443:443 --name gitlab --restart always gitlab/gitlab-ce:latest Jenkins docker -H :4000 run -tid --net=swarm-network -p 8080:8080 -p 50000:50000 jenkins R&D/docker 2016.08.24
docker compose 명령어docker-compose up- 기본적으로 fore-ground 로 동작한다. 따라서 background 로 돌리고 싶으면 -d 옵션을 주면 된다. R&D/docker 2016.06.20
docker 명령어 데몬 실행하기 docker daemon -D --dns 8.8.8.8 --dns 8.8.4.4 --default-ulimit nofile=1024:4096 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --cluster-advertise eth0:2375 --cluster-store consul://10.251.81.80:8500 docker 를 실행하면서 detach 시킴-d R&D/docker 2016.06.09
docker swarm 관련 EIP 를 기반으로 Docker Swarm을 생성할 때 52.38.210.8552.41.47.9452.41.47.66 Docker 설치curl -sSL https://get.docker.com/ | sh /etc/default/docker 에 추가 --default-ulimit nofile=1024:4096 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --cluster-advertise 52.38.210.85:2375 --cluster-store consul://52.38.210.85:8500--default-ulimit nofile=1024:4096 -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --clu.. R&D/docker 2016.06.09
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
docker environment 전달 { ..., "container": { "docker": { ... "parameters": [ { "key": "hostname", "value": "a.corp.org" }, ..., ] }, "type": "DOCKER", "volumes": [] }, ... } docker 생성시 key=value 환경 변수를 container 에게 전달할 때 사용 R&D/docker 2016.02.02
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
docker에서 여러 process 시작하기 supervisordhttp://tech.paulcz.net/2014/12/multi-process-docker-images-done-right/ [supervisord] nodaemon=true 참조:https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps R&D/docker 2015.12.10