Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2019-06-23 01:49:25
Size: 817
Editor: SamatJain
Comment: Inspect containers
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 11: Line 11:
== 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)
Line 17: Line 30:
docker run -it --entrypoint=/bin/sh ${CONTAINER} docker run -it --entrypoint=/bin/sh ${IMAGE}
Line 19: Line 32:
docker exec -it ${container} /bin/sh 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)