#docker

/

      • frob has quit
      • ash_workz has quit
      • lavalamp joined the channel
      • enderandpeter has quit
      • neilus has quit
      • inteq joined the channel
      • Milijus has quit
      • manik has quit
      • Milijus joined the channel
      • manik joined the channel
      • Vile` joined the channel
      • dsantiago has quit
      • wlightning-fuel has quit
      • neilus joined the channel
      • Milijus has quit
      • TheMetaTroll joined the channel
      • neilus has quit
      • muddymud joined the channel
      • muddymud has quit
      • buck1 has quit
      • Milijus joined the channel
      • GenteelBen has quit
      • bwreilly has quit
      • jkyle1 joined the channel
      • jfisk87 has quit
      • willgorman has quit
      • sl4v3 joined the channel
      • TheMetaTroll has left the channel
      • sl4v3
        programmerq: hey, we figured it out. just having docker toolbox and docker for mac seemed to really screw everything up. and or, she had never actually opened kitematic from docker toolbox to provision that initial default VM.
      • programmerq: i was driving the whole room, so it's not like i could see everyone's screen, and when i asked if she'd ever seen the kitematic UI and said no, that's where i was left.
      • programmerq: what was actually happening was, for whatever reason, docker-machine was trying to ssh to 127.0.0.1 using a private key for the default docker machine.
      • errordeveloper has quit
      • natea joined the channel
      • mtanino_ has quit
      • stuwest has quit
      • tophj joined the channel
      • dsantiago joined the channel
      • thc202 has quit
      • neilus joined the channel
      • amperage joined the channel
      • stuwest joined the channel
      • leepoff joined the channel
      • spechal joined the channel
      • amcm joined the channel
      • AvianFlu has quit
      • spechal has quit
      • jaequery has quit
      • ec0 joined the channel
      • stuwest has quit
      • amperage has left the channel
      • amperage joined the channel
      • jheckman joined the channel
      • neilus has quit
      • ipalade|off is now known as ipalade
      • leepoff has quit
      • buck1 joined the channel
      • buck1 has quit
      • okto joined the channel
      • erkules_ joined the channel
      • mischat joined the channel
      • okto has quit
      • mischat has quit
      • dscastro joined the channel
      • ArcadeFella joined the channel
      • Pavo has quit
      • thunfisch_ joined the channel
      • manik has quit
      • manik joined the channel
      • jkremser has quit
      • thunfisch has quit
      • Pavo joined the channel
      • amperage joined the channel
      • stuwest joined the channel
      • amperage has quit
      • stuwest has quit
      • amperage joined the channel
      • smoores has quit
      • tenk joined the channel
      • JamesBaxter joined the channel
      • ash_workz joined the channel
      • leepoff joined the channel
      • stuwest joined the channel
      • JacobsLadd3r has quit
      • jfisk87 joined the channel
      • chachasmooth joined the channel
      • cpe joined the channel
      • bturker joined the channel
      • manik has quit
      • manik joined the channel
      • bturker has quit
      • tonist joined the channel
      • Vile` has quit
      • mistermocha joined the channel
      • yumaokao joined the channel
      • cartik joined the channel
      • olalonde joined the channel
      • JamesBaxter joined the channel
      • cartik has quit
      • boucher has quit
      • moloch has quit
      • cryodream has quit
      • witquicked has quit
      • boombatower joined the channel
      • Milijus joined the channel
      • neilus joined the channel
      • cryodream joined the channel
      • Luuubb has quit
      • neilus has quit
      • Sparklyballs joined the channel
      • cpe has quit
      • cpe joined the channel
      • johnny56 joined the channel
      • tenk has quit
      • fluter joined the channel
      • romerocesar joined the channel
      • amcm has quit
      • sartan
        hey,s o i need to run a container with something like docker run -d app --address=<ip of eth0>. problem is - eth0 doesnt' have an IP yet, technically, as it's behind dhcp. i can't create the docker container in advance really.
      • can i trick docker to evaluating some kind of variables in the cmd args at runtime, that get re-evaulated every time the service starts or is restarted?
      • sabrehagen joined the channel
      • ideally it'd be something like docker run -d app --address=$(ip) - but that's consumed immediately as soon as i execute the docker command, obviously
      • Luuubb joined the channel
      • rmenn joined the channel
      • urbanmonk joined the channel
      • tenk joined the channel
      • Helio-
        sartan: use an entrypoint.sh
      • also, I think you may be misunderstanding how docker networking works
      • PaulCapestany joined the channel
      • each container is bound to the internal network, the daemon forwards ports to the container that you specify
      • rmenn has quit
      • PaulCapestany has quit
      • sartan
        Hmm, i have a very strong understanding of how the docker networking is working.
      • i'm trying to automate swarm agents joining a swarm manager in a pxe-boot like environment, where i don't necessarily know the IP of what the swarm workers need to advertise to the manager are when i create the docker container
      • Helio-
        then don't run them until you get an IP address, or use something like puppet's docker run to grab the ipaddress fact and dump it in
      • sartan
        that honestly just feels like running problems up the stack
      • Chakri joined the channel
      • PaulCapestany joined the channel
      • Helio-
        lol
      • urbanmonk has quit
      • why aren't you just waiting until you fetch your ip from dhcp in your rc.local to create the containers?
      • buck1 joined the channel
      • sartan
        dhcp can and does time out, and whatever i'm doing to wait for that (eg, cloud-init) will err out and boot anyway
      • really trying to avoid yet another management wrapper around yet more junk to support
      • i just need to pass a $variable to a container as soon as it starts running, not when it's built
      • Helio-
        then pass it a variable when you use docker run from your init.d script
      • sartan
        that's kind of the same problem, really. that inint script can time out, or wont' retry. ideally i'd just like to use --restart=always for docker itself
      • Helio-
        what you want doesn't exist and it doesn't make sense for it to exist
      • okto joined the channel
      • sartan
        there's a fairly long series of use cases for exposing host information to containers at https://github.com/docker/swarm/issues/1106
      • simple, really useful things like 'what node am i on' and, 'what is my owners ip?'
      • ron_frown joined the channel