Size: 817
Comment: Inspect containers
|
← Revision 4 as of 2020-04-14 07:45:41 ⇥
Size: 1452
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
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
# 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