diff --git a/README.md b/README.md index f678d43..be49965 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,10 @@ * [Modules](./Ansible/modules_plugins.md) * [AWX](./Ansible/AWX.md) * [Android](./android.md) +* [containerization](./containerization) + * [Docker](./containerization/docker.md) + * [Podman](./containerization/podman.md) * [curl](./curl.md) -* [docker](./docker.md) * [git](./git/README.md) * [Linux](./linux/README.md) * [Archlinux](./linux/arch/README.md) diff --git a/docker.md b/containerization/docker.md similarity index 100% rename from docker.md rename to containerization/docker.md diff --git a/containerization/podman/README.md b/containerization/podman/README.md new file mode 100644 index 0000000..3ab1ed4 --- /dev/null +++ b/containerization/podman/README.md @@ -0,0 +1,22 @@ +# Podman + +## Plugins + +### dnsname + +To re-create the DNS functionality of Docker the Podman community wrote the [dnsname plugin](https://github.com/containers/dnsname). It uses DNSMasq to enable DNS resolution inside the containers. To enable it, edit `/etc/cni/net.d/87-podman-bridge.conflist` and add the following config in the `plugins` section: +```json + { + "type": "dnsname", + "domainName": "podman.internal" + } +``` +The `domainName` setting is added after every container name, e.g. `example.podman.internal` for a container called `example`. + +You can find a pre-compiled version of the plugin [here](./dnsname). + +#### Links + +* https://podman.io/getting-started/network#using-dns-in-container-networks +* https://github.com/containers/dnsname/blob/main/README\_PODMAN.md +* https://github.com/containers/dnsname diff --git a/containerization/podman/dnsname b/containerization/podman/dnsname new file mode 100755 index 0000000..3085b6a Binary files /dev/null and b/containerization/podman/dnsname differ