]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/user: updated info about docker images 1789/head
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 9 Jan 2026 15:24:08 +0000 (16:24 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Sat, 10 Jan 2026 08:22:31 +0000 (09:22 +0100)
doc/user/deployment-docker.rst
doc/user/gettingstarted-install.rst

index 42f5503b3db88db72cf57ba8ec202d88b768937a..068b31a4fe20ba7896520dc913cce69cac69d334 100644 (file)
@@ -1,3 +1,5 @@
+.. _deployment-docker:
+
 ******
 Docker
 ******
@@ -13,7 +15,7 @@ First you can try running the container in interactive mode.
 
 .. code-block:: bash
 
-    $ docker run --rm -ti --network host docker.io/cznic/knot-resolver:6
+    $ docker run --rm -ti --network host docker.io/cznic/knot-resolver
 
 For more robust deployments you will also probably need to configure network, for that see `Docker networking <https://docs.docker.com/engine/network/>`_.
 
@@ -45,7 +47,7 @@ for more see `Docker persisting container data <https://docs.docker.com/get-star
 .. code-block:: bash
 
     $ docker volume create config
-    $ docker run --rm -ti --network host -v config:/etc/knot-resolver docker.io/cznic/knot-resolver:6
+    $ docker run --rm -ti --network host -v config:/etc/knot-resolver docker.io/cznic/knot-resolver
 
 After a configuration change there is no need to restart the entire container, just tell the resolver to reload the configuration.
 Get ``CONTAINER_ID`` using the ``docker ps`` command or give your container name with the ``--name`` argument at container startup.
@@ -65,4 +67,4 @@ It is also good to mount the cache on ``tmpfs`` (semi-persistent), otherwise it
 .. code-block:: bash
 
     $ docker volume create --opt type=tmpfs --opt device=tmpfs cache
-    $ docker run --rm -ti --pid=host --network host -v cache:/var/cache/knot-resolver docker.io/cznic/knot-resolver:6
+    $ docker run --rm -ti --pid=host --network host -v cache:/var/cache/knot-resolver docker.io/cznic/knot-resolver
index 2f84098e1dd62a4437a33ce893150e0442dcb81e..788eabe259c73d618ae1af0ca0d1e33d6e5a5630 100644 (file)
@@ -28,7 +28,9 @@ Please, follow the instructions for your packaging system:
 
         .. code:: bash
 
-            sudo docker run -ti --net=host docker.io/cznic/knot-resolver:6
+            sudo docker run --rm -ti --network host docker.io/cznic/knot-resolver
+
+        More about Docker deployments can be found in :ref:`deployment-docker` section.
 
 If for some reason you need to install Knot Resolver **from sources**,
 check out `building from sources <./dev/build.html>`_ section in developer documentation.