Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2019-02-10 07:07:55
Size: 555
Editor: SamatJain
Comment:
Revision 4 as of 2020-04-14 07:45:41
Size: 1452
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:

== DNS ==

How does the host figure out DNS for containers?

 * [[https://hub.docker.com/r/mgood/resolvable/|resolvable]]: integrates w/ systemd to make Docker containers have DNS.
 * [[https://github.com/larsks/dnsthing|larsks/dnsthing]] listens to Docker's events stream and creates a hosts file.

== Open vSwitch and Multi ==

Open vSwitch, pre-Docker swarm:

 * [[http://www.openvswitch.org//support/dist-docs-2.5/INSTALL.Docker.md.html|How to Use Open vSwitch with Docker]]
 * [[https://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/|Connecting Docker containers on multiple hosts]] (old)
== Stuff I never remember ==

=== Inspect containers ===

{{{#!highlight sh numbers=off
# Shell into a new copy of a container
docker run -it --entrypoint=/bin/sh ${IMAGE}
# Shell into a running container
docker exec -it ${CONTAINER_ID} /bin/sh
}}}

Docker

systemd and docker

DNS

How does the host figure out DNS for containers?

  • resolvable: integrates w/ systemd to make Docker containers have DNS.

  • larsks/dnsthing listens to Docker's events stream and creates a hosts file.

Open vSwitch and Multi

Open vSwitch, pre-Docker swarm:

Stuff I never remember

Inspect containers

# Shell into a new copy of a container
docker run -it --entrypoint=/bin/sh ${IMAGE}
# Shell into a running container
docker exec -it ${CONTAINER_ID} /bin/sh

SamatsWiki: Containers/Docker (last edited 2020-04-14 07:45:41 by SamatJain)