Size: 1146
Comment:
|
← Revision 4 as of 2020-04-14 07:45:41 ⇥
Size: 1452
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
Presentation: Docker without Docker
systemd and docker
Running Docker containers with systemd: Describes interfacing systemd and docker directly, along with the systemd-docker wrapper.
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
Toggle line numbers
# 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