summaryrefslogtreecommitdiff
path: root/docs/installation/virtual/docker.rst
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-06 20:42:32 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-06 20:42:32 +0300
commit5d6fa52b8985f8068314aba26878a1d7d5cb84e5 (patch)
tree99359ff282846e26b5c5fa2b9b176b35b172809f /docs/installation/virtual/docker.rst
parent631e454d674ad5111d2b56a6964ead461894a1f6 (diff)
downloadvyos-documentation-5d6fa52b8985f8068314aba26878a1d7d5cb84e5.tar.gz
vyos-documentation-5d6fa52b8985f8068314aba26878a1d7d5cb84e5.zip
feat: flip swap mechanism — MD as primary, RST as override (Phase 1)
This is the first of three phases inverting the per-page swap mechanism so MD becomes the canonical primary and RST becomes the rare override. Phase 1 — file renames + conf.py exclude_patterns flip only: - Rename docs/**/md-<stem>.md to docs/**/<stem>.md (drop md- prefix) for all 254 stems previously listed in docs/_swap.txt - Rename docs/**/<stem>.rst to docs/**/rst-<stem>.rst (add rst- prefix) for the same 254 stems - Repurpose docs/_swap.txt as docs/_rst_overrides.txt; initially empty comment-only since no pages need the RST fallback right now - conf.py exclude_patterns flipped: rst-*.rst is now excluded by default instead of md-*.md - conf.py runtime-artifact references updated to _rst_override_state.json and _md_exclude.txt (Phase 2 will rewrite swap_sources.py to produce these names; for now no swap script runs because overrides list is empty) Phase 2 (next commit on this branch) will rewrite scripts/swap_sources.py with inverted rename direction, delete scripts/import_myst.py + tests, and update tests/test_swap_sources.py for the new semantics. Phase 3 will be the cleanup pass and ready-for-review flip. Generated by robots https://vyos.io
Diffstat (limited to 'docs/installation/virtual/docker.rst')
-rw-r--r--docs/installation/virtual/docker.rst75
1 files changed, 0 insertions, 75 deletions
diff --git a/docs/installation/virtual/docker.rst b/docs/installation/virtual/docker.rst
deleted file mode 100644
index d62c011b..00000000
--- a/docs/installation/virtual/docker.rst
+++ /dev/null
@@ -1,75 +0,0 @@
-:lastproofread: 2026-02-02
-
-.. _docker:
-
-##############################
-Run VyOS in a Docker Container
-##############################
-
-Docker is an open-source project for deploying applications as standardized
-units called containers. Deploying VyOS in a container provides a simple and
-lightweight mechanism for both testing and packet routing for container
-workloads.
-
-IPv6 support for Docker
-=======================
-
-VyOS requires an IPv6-enabled Docker network. Currently Linux distributions
-do not enable Docker IPv6 support by default. You can enable IPv6 support in
-two ways.
-
-Method 1: Create a docker network with IPv6 support
----------------------------------------------------
-
-Here's an example using the ``macvlan`` driver.
-
-.. code-block:: none
-
- docker network create --ipv6 -d macvlan -o parent=eth0 --subnet 2001:db8::/64 --subnet 192.0.2.0/24 mynet
-
-Method 2: Add IPv6 support to the Docker daemon
------------------------------------------------
-
-Edit /etc/docker/daemon.json to set the ``ipv6`` key to ``true`` and specify
-the ``fixed-cidr-v6`` to your desired IPv6 subnet.
-
-.. code-block:: none
-
- {
- "ipv6": true,
- "fixed-cidr-v6": "2001:db8::/64"
- }
-
-Reload the Docker configuration.
-
-.. code-block:: none
-
- $ sudo systemctl reload docker
-
-
-Deploy container from ISO
-=========================
-
-Download the ISO you want to base the container on. In this example,
-the ISO is ``vyos-1.4-rolling-202308240020-amd64.iso``. If you
-created a custom IPv6-enabled network, include it as the ``--net`` parameter
-to ``docker run``.
-
-.. code-block:: none
-
- $ mkdir vyos && cd vyos
- $ curl -o vyos-1.4-rolling-202308240020-amd64.iso https://github.com/vyos/vyos-rolling-nightly-builds/releases/download/1.4-rolling-202308240020/vyos-1.4-rolling-202308240020-amd64.iso
- $ mkdir rootfs
- $ sudo mount -o loop vyos-1.4-rolling-202308240020-amd64.iso rootfs
- $ sudo apt-get install -y squashfs-tools
- $ mkdir unsquashfs
- $ sudo unsquashfs -f -d unsquashfs/ rootfs/live/filesystem.squashfs
- $ sudo tar -C unsquashfs -c . | docker import - vyos:1.4-rolling-202111281249
- $ sudo umount rootfs
- $ cd ..
- $ sudo rm -rf vyos
- $ docker run -d --rm --name vyos --privileged -v /lib/modules:/lib/modules \
- > vyos:1.4-rolling-202111281249 /sbin/init
- $ docker exec -ti vyos su - vyos
-
-To stop the container, run ``docker stop vyos``.