Differences between revisions 3 and 4
Revision 3 as of 2020-04-14 03:24:42
Size: 1146
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.
Line 23: Line 30:
docker run -it --entrypoint=/bin/sh ${CONTAINER} docker run -it --entrypoint=/bin/sh ${IMAGE}
Line 25: 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)