Closed smashwilson closed 8 years ago
I prefer the explicit instruction for docker ps
too, for passersby to slides and not alienating those that don't want to adopt the aliases.
How secure are overlay networks in Swarm, anyway? Is it possible to sniff them... ?
That depends on the implementation. In the case of carina, the overlay networks function over service net while not having publicly accessible ports or IPs. An attacker would have to have access to sniffing on servicenet itself.
Thanks for the review @smashwilson. Edits are in https://github.com/everett-toews/jupyterhub-on-docker-swarm/commit/5d7da3a0c4bba84983c82f8cc97335bd90daec12
Slide 14: The ds alias isn't used anywhere else, we always spell out docker ps. Maybe delete?
Deleted
Slide 24: Any reason you're using gliderlabs/alpine instead of alpine? I'd prefer to nudge people toward the official image.
Nope. Removed. (I was using the official image everywhere else ...)
Slide 24: What would you think about adding a CMD as well? That could lead in to the differences between ENTRYPOINT and CMD.
Done.
Slide 25: The entrypoint.sh script should exec on its final line. It actually does make a difference' see the best practices guide. Specifically, it ensures that signals are propagated to the nginx process correctly, which will be important later if we need to SIGHUP it.
TIL. Thanks!
@everett-toews: I gave the Docker section a run-through and had a few minor comments. I figured I'd post them here rather than dump them all in Slack so you could check them out later.
ds
alias isn't used anywhere else, we always spell outdocker ps
. Maybe delete?gliderlabs/alpine
instead ofalpine
? I'd prefer to nudge people toward the official image.CMD
as well? That could lead in to the differences betweenENTRYPOINT
andCMD
.entrypoint.sh
script should exec on its final line. It actually does make a difference' see the best practices guide. Specifically, it ensures that signals are propagated to the nginx process correctly, which will be important later if we need to SIGHUP it.